from math import ceil a,b,c=map(int,input().split()) a*=60;c*=3600;v=ceil(c/(a-b)) print(v if v>=0 else -1)