import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = Integer.valueOf(scan.nextLine().trim());
if (N == 1) {
System.out.println(1);
return;
}
int[][] ans = new int[N][];
int index = 1;
for (int i = 0; i < ans.length; i++) {
ans[i] = new int[N - i];
for (int j = 0; j < ans[i].length; j++) {
if (i == 0 && j == 0) {
ans[i][j] = 1;
} else if (j == 0) {
ans[i][j] = ans[i - 1][j] + i;
} else {
ans[i][j] = ans[i][j - 1] + index + j;
}
if (j == ans[i].length - 1) {
System.out.println(ans[i][j]);
break;
}
System.out.print(ans[i][j] + " ");
}
index++;
}
}
}