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