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