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