#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d,e,f; cin>>a>>b>>c>>d; e=a+(b/10); f=c+(d/10); cout<<int(f/e); return 0; }