a, b=map(int, input().split()) kq=(a+b)*(b-a)/(2*2) print(format(kq,'.2f'))