a, b = map(int, input().split())
if a > b:
a, b = b, a
say = b - a + 1
print((a + b) * say // 2)
This code desciption is wrong!!
RofaMuslum the problem and editorial are correct, please be more specific