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