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