public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int number = sc.nextInt();
for (int i = 1; i <= number; i++) {
for (int j = 1; j <= number * 2 - 1; j++) {
boolean b = j > number - i & j < number + i;
if (i % 2 != 0) {
if (j % 2 == 0&b==true) {