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