n = int(input()) def f(n): lst = [] i = 0 x = 0 while True: i += 1 x += i if x