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