a,b,c=map(int,input().split()) #c=r*b+d #b=r*a+d r=(c-b)/(b-a) d=c-b*r print(int(r*c+d))