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