A,B=(float(i) for i in input (). split ()) if A==B: print (int(A*2)) else: A2=A*A B2=B*B A2-=B2 A-=B A2/=A print (int(A2))