s=input().split() a=int(s[0]) b=int(s[1]) c=int(s[2]) d=int(s[3]) l=(a*10+b) j=(c*10+d) print(int(j/l))