#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c,d; cin>>a>>b>>c>>d; cout<<int((c+d*0.1)/(a+b*0.1)); return 0; }