import sys input = sys.stdin.readline b1, b2, b3 = map(int, input().split()) r = (b2 - b3) / (b1 - b2) d = b2 - r * b1 print(int(r * b3 + d))