N = input() import numpy as np a = np.arrange(N) answer =np.sum(a) print(answer)