a, b, c = map(int, input().split()) import math if 60*a-b > 0: x = math.ceil(3600*c/(60*a-b)) print(x) else: print(-1)