while (1): N = int(input()) if 0 <= N <= 100: break wa=0 for i in range(N+1): wa += i print(wa)