n = int(input()) def sumN(num): if num == 1: return num else: return num + sumN(num - 1) print(sumN(n))