using System;
public class Program
{
public static void Main()
Console.WriteLine("");
int n = int.Parse(Console.ReadLine());
for (int row = 1; row <= n; row++)
for (int col = 1; col <= row; col++)
Console.Write(col + " ");
}
Console.WriteLine();