import math A, B, C = map(int, input().split()) print(math.ceil(C * 60 * 60 / (A * 60 - B)) if (A * 60 - B) > 0 else - 1)