import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
//your code here
// #
// ##
// ###
// ####
// #####
Scanner scan = new Scanner(System.in);
int c = scan.nextInt();
for(var i=0; i<c;i++)
{
var t =0;
while(t!=c-i-1)
{
System.out.print(" ");
t++;
}
var k =i+1;
for(var j=0; j<k;j++)
System.out.print("#");
System.out.print("
");
}
}
}
class rightTrianlge {
public static void main(String[] args) {
// size of the triangle
int size = 5;
// loop to print the pattern
for (int i = 0; i < size; i++) {
// print spaces
for (int j = 1; j < size - i; j++) {
System.out.print(" ");
}
// print stars
for (int k = 0; k <= i; k++) {
System.out.print("*");
}
System.out.println();
}
}
}