a,b,c=map(int,input().split()) if 3600*c%(60*a-b)==0: ans=3600*c//(60*a-b) else: ans=3600*c//(60*a-b)+1 print(ans)