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