b1,b2,b3 = map(int, input().split()) r = (b3-b2)/(b2-b1) d = b2-r*b1 b4 = r*b3+d if b4 >= 0: b4 += 0.1 else: b4 -= 0.1 print(int(b4))