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