A,B,C = map(int,input().split()) if 60 * A < B: print(-1) else: answer = (3600 * C) / (60 * A - B) if int(answer) == answer: print(int(answer)) else: print(int(answer) + 1)