a,b,c = map(int,input().split()) r = (c-b)/(b-a) ans = c + r*(c-b) print(int(float('{:0f}'.format(ans))))