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