t, s, d = map(int, input().split()) drive = d / s if t + drive <= 30: print(drive) else: print(30 - t)