input = int(input()) def sigma(x): if x == 0: return 0 else: return (x + sigma(x-1)) sigma print(sigma(input))