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