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