a,b=map(int,input().split()) n=10000 ans=0 d=(b-a)/n h=a for i in range(n): h+=d w=abs((h-a)*(h-b)) ans+=(w*d) print(ans)