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