N=map(int, raw_input().split()) x, y, z = N rz=float(y*z-z*z)/(x-y) d=float(x*z-y*y)/(x-y) print int(rz+d)