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