a,b,c = map(int,input().split()) a *= 60 c *= 60*60 if a <= b: print(-1) else: print((c+a-b-1)//(a-b)) #a*x >= b*x + c #(a-b)*x >= c