public class Test {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String str = input.next();
int num = Integer.valueOf(str);
for (int i = 1; i <= num; i++) {
for (int j = 1; j <= num - i; j++) {
System.out.print(" ");
}
for (int k = 1; k <= i; k++) {
System.out.print(i + " ");
}
System.out.println("");
}
}
}
java.util.Scanner input=new java.util.Scanner(System.in);
int in = input.nextInt();
for(int i=1;i<=in;i++){
for(int j=1;j<=in-i;j++){
System.out.print(" ");
}
for(int k=1;k<=2*i-1;k++){
System.out.print("*");
}
System.out.println("");
}
public class E
{
public static void main(String[] args)
{
for(int i=1;i<=5;i++)
{
for(int k=i;k<=5;k++)
{
System.out.print(" ");
}
for(int j=1;j<=i;j++)
{
System.out.print(" "+i);
}
System.out.println();
}
}
}