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