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