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