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("*"+" ");
else
System.out.print(" ");
}
System.out.println();
}
}
}
//only 80 marks are being given
where as the logic is correct for all the inputs plz guide me if there is any problem related to my logic