#38276: __py


11035093@mail.hpsh.tp.edu.tw (ಥ⁠‿⁠ಥ)


a,b=map(int,input().split())
if (a % 2==1):a=a + (a % 2)
if (b % 2==1):b=b - (b % 2)
print(int((a+b)*(((b - a) // 2) + 1)/2))