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