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