include<stdio.h>

int main()
{
int a = 0;
while (~scanf("%d", &a))
{
for (int b = 1; b <= a; b++)
{
for (int c = 1; c <=b; c++)
{
printf("%d ", c);
}printf("\n");
}
}return 0;
}