#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; a=a*10; c=c*10; cout<<(c+d)/(a+b)<<endl; return 0; }