from math import ceil def main(): a, b, c = map(int, input().split()) a *= 60 # 秒病に直す c *= 3600 if a <= b: print(-1) else: print(ceil(c / (a - b))) if __name__ == "__main__": main()