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