inp = input() num = int(inp) total = 0 for i, n in enumerate(range(num), start=1): total += i print(total)