t,a,b,c;main(k){for(scanf("%d",&k);a+b+c>249|a*b+c-k|t>a+b+c+1?t?exit(0),1:c--||(c=b--)||(b=++a):printf("%d ",t?t>a?t>a+b?t>a+b+c?6:5:4:3:a+b+c+1)+t++;);}