c = 0 N = input(int()) while N >= 0: c = c + N N -= 1 print(c)