STDIN = input() # CONVERT TO INT STDIN_INT = int(STDIN) output = 0 loop = 0 while loop <= STDIN_INT: output += loop print(output)