A,B,C=map(float,input().split()) r=(C-B)/(B-A) print(round(r*(C-B)+C))