B = list(map(int, input().split())) r = (B[1]-B[2])/(B[0]-B[1]) d = B[1]-((B[1]-B[2])/(B[0]-B[1]))*B[0] b4 = r*B[2]+d b4 = round(b4) print(b4)