#include <iostream>
#include <iomanip>
int main()
{
constint N = 6;
for ( int i = 1; i < N; i++ )
{
int k = 2 * i - 1;
std::cout << std::setw( N + 1 - i );
for ( int j = i; j < i + k; j++ )
{
if ( j > k ) std::cout << 2 * k - j;
else std::cout << j;
}
std::cout << std::endl;
}
return ( 0 );
}