#yuki734 import math a,b,c=map(int,raw_input().split()) y=3600.0*c/(60*a-b) if y>=0: print int(math.ceil(y)) else: print -1