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