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