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