import math a, b, c = map(int, input().split()) a *= 60 c *= 3600 x = math.ceil(c / (a-b)) print([-1, x][x > 0])