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