map{//;$_>($c=$n-$'-$_)or print"$' $_ $c\n"for$'..$n}1..($n=<>)