a,b = map(int,input().split()) c = []; c.append(a); c.append(b); c = sorted(c) #將a,b排大小d = [ x for x in range(c[0],c[1]+1) if x % 2 == 0] #串列推導式print(sum(d)) #利用sum()算出加總值