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