import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int nsp = n - 1;
int nst = 1;
// row
int row = 1;
while (row <= n) {
// work space
int csp = 1;
while (csp <= nsp) {
System.out.print(" ");
csp++;
}
//work stars
int cst = 1;
while(cst <= nst) {
System.out.print("*");
cst++;
System.out.print("!");
}
// prep
System.out.println();
nsp = nsp - 1;
nst = nst + 1;
row = row + 1;
}
}
}