n = int(input())
print(n + (n * (n - 1))//2)
等差数列求和公式就可以