import sys input=lambda: sys.stdin.readline().rstrip() a,b,c=map(int,input().split()) if 60*a<=b: print(-1) else: print((3600*c-1)//(60*a-b)+1)