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