A, B, C = map(int, input().split()) t = A * 60 - B if t <= 0: print(-1) else: print((C + t - 1) // t)