import math A, B, C = map(int, input().split()) A *= 60 C *= 3600 X = math.ceil(C / (A-B)) print([-1, X][X > 0])