a, b, c = map(int, input().split()) a, b, c = a * 60, b, c * 60**2 if a < b: print(-1) else: print(int(-(-(c) // (a - b))))