N, M = map(int, input().split())
even = 0
odd = 0
for i in range(0, N):
    even += i
for j in range(0, M):
    odd += j
print(odd + even)

28021f8a73db4f3d33e21216396a2705e6c023f0
<mask token>

<mask token>
for i in range(0, N):
    even += i
for j in range(0, M):
    odd += j
print(odd + even)

N, M = map(int, input().split())
even = 0
odd = 0
for i in range(0, N):
    even += i
for j in range(0, M):
    odd += j
print(odd + even)
