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