#include <stdio.h>

int main() {
    int n, col, row, val;
    printf("Provide value of N: ");
    scanf("%d", &n);
    for (row = 0; row < n; row++) {
    	val = 0;
    	for (col = 0; col <= row; col++) {
    		val += 2;
    		printf("%d ", val);
    	}
        for (col = 0; col < row; col++) {
        	val -= 2;
        	printf("%d ", val);
        }
        printf("\n");
    }
    return 0;
}