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