s;main(d,x){for(x=atoi(gets(&s));s=printf(d?s?"[":x?", ":"]":&s)*d*x--;)main(~d/2);}