n = int(input()) a = 0 for i in n+1: if n >= i: a += i else: continue print(a)