#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n;
    cin >> n;

    for (int i = 0; i < n; i++) {
        // Print spaces
        for (int j = 1; j <= n - i - 1; j++) {
            cout << " ";
        }

        // Print numbers
        for (int k = 1; k <= i + 1; k++) {
            cout << k;
        }

        // Break the line
        cout << endl;
    }

    return 0;
	return 0;
}