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