//what is lacking in my logic it is correct for all input then why its showing wrong for just1 1 input and passed other inputs.
//
import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= 2n-2; j++) {
if(j<=n+1-i)
System.out.print(j+" ");
if(j<=n-2+i && j>=n+2-i)
System.out.print("*"+" ");
}
System.out.println();
}
}
}