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