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