package hello;
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[][] arr = new int[n][n];
for (int i = 0; i < n; i++)
for (int j = 0; j <= i; j++) {
if (j == 0 || i == j)
arr[i][j] = 1;
else
arr[i][j] = arr[i - 1][j] + arr[i - 1][j - 1];
}
for (int i = 0; i < n; i++) {
for (int m = 0; m < n - 1 - i; m++)
System.out.print(" ");
for (int j = 0; j <= i; j++)
System.out.print(arr[i][j] + " ");
System.out.println();
}
}
}