import math a,b,c = map(int,input().split()) x = 3600 * c / (60 * a - b) if x <0 : print("-1") else : print(math.ceil(x))