N = int(input().split()) x = 0 for i in range(N): x += i N = x print(N)