import java.util.Scanner;
public class Pattern {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
fn(n, 1, 1);
}
public static void fn(int n, int row, int col) {
if (row > n)
return;
if (col <= row) {
System.out.print("*");
fn(n, row, col + 1);
}
if (col > row) {
System.out.println();
fn(n, row + 1, 1);
}
}
}