read n;for i in {1..$n};do a=();a[i-$[i>$n/2+1]]=X;a[$n-i+$[i>$n/2]]=X;echo "$a[*]";done