a,b,c = map(int, input().split()) a *= 60 c *= 3600 if a <= b: print(-1); exit(0) print((c-1)//(a- b) + 1)