#include <iostream>

using namespace std;

int main()
{
  for (int q=0; q<10; ++q)
  {
    for (int w=0; ; ++w)
    {
      cout << (char)(q ? q+'0' : ' ') << (char)(w+'0');
      if (q == w) break;
      cout << ' ';
    }
    
    cout << endl;
  }
}