import math A, B, C = map(int, input().split()) if A*60 < B: print(-1) else: print(math.ceil(3600 * C / (60 * A - B)))