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