import java.util.Scanner;
public class zhangchuang {
/**
* @param args
*/
// TODO Auto-generated method stub
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.println("请输入要打印的行数");
int count=input.nextInt();
for (int i = 1; i <= count; i++)
{
for (int j = 1; j <= i; j++)
{
System.out.print(j+" ");
}
System.out.println();
}
}
}