***Perl 6, 61 bytes*** =========== my $x=prompt(0);my @a=$x xx$x;"@a=[@a] xx $x;".EVAL xx$x-1; Big rippof from the Python 2 answer, but converted :P