import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();//实现输入一个n
int arr[][] = new int[n][n];//创建长度为n的二维数组
for (int i = 0; i < n; i++) {
for (int j = 0; j <= i; j++) {
if (i == j || j == 0) {
arr[i][j] = 1;
} else {
arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
}
System.out.print(arr[i][j] + “\t”);
}
System.out.println();
}
}
}