package book;
import java.util.Scanner;
public class Test5_19 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
System.out.println("enter the number of line");
int numberOfLine = in.nextInt();
for(int rows=1;rows<=numberOfLine;rows++){
for(int space=numberOfLine-rows;space>=1;space++){
System.out.print(" ");
}
for(int i=0;i<=numberOfLine-1;i++){
int a = (int)(Math.pow(2, i));
System.out.print(a+" ");
}
for(int j=numberOfLine-1;j>=0;j--){
int b = (int)(Math.pow(2, j));
System.out.print(b+" ");
}
System.out.println();
}
}
}