一遍过,睡觉睡觉
// 2 3 4 5
// 3 4 5
// 4 5
// 5
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int flag = scan.nextInt();
for(int i=1,temp1=1;i<=flag;temp1+=i,i++){// temp1 1 2 4
for(int j=i,temp2=temp1;j<=flag;j++,temp2+=j){ //temp2 1 3
System.out.print(temp2+" ");
}
System.out.println();
}
}
}