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