def f(n,s): if n<=l: f(n+s-1,s+1) while n<=l:print n,;n+=s;s+=1 print l=input() f(1,2)