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