/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		int[][] v = new int[5][];
		for (int i = 0; i < v.length; i++) {
			// cada "linha" da "matriz" tem um tamanho diferente
			int len = i + 1;
			v[i] = new int[len];
			for (int j = 0; j < len; j++)
			    v[i][j] = j;
		}
		
		for(int[] linha: v){
			for(int valor: linha) {
				System.out.print(valor + " ");
			}
			System.out.println();
		}
	}
}