n;main(i,a){for(;~-printf(gets(a)?i&&n--?n?"%s, ":"%s]":(n=atoi(a),--i)?", ["-!~i:"[[":"]",a););}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page