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