import math

a, b, c = map(int, input().split())

a *= 60
c *= 3600
ans = math.ceil(c /(a - b))

if ans >= 0:
    print(ans)
else:
    print(-1)