a=0 while True: a += N N -= 1 if N == 0: break print(a)