#yuki_538 a,b,c=map(int,raw_input().split()) res=(b**2+c**2-b*c-a*c)/(b-a) print res