# No.734 Careful Engineer import math a, b, c = [int(s) for s in input().split()] products = 3600 * c / (60 * a - b) print(math.ceil(products) if products >= 1 else -1)