A, B, C = map(int,input().split()) n = (C*60*60+A*60-B-1)//(A*60-B) if A*60>B else -1 print(n)