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