a,b,c=map(int,input().split()) if a!=b: r=-(c-b)/(a-b) d=(a*c-b*b)/(a-b) else: r=d=0 print(int(r*c+d))