#!/bin/python

import math
import os
import random
import re
import sys

# Complete the staircase function below.
def staircase(n):
    for i in range(n):
        for j in range(n):
            if i+j >= n-1:
                print('#', end = '')
            else:
                print(' ', end = '')
        print('')
        
if __name__ == '__main__':
    
    n = int(input().strip())
    staircase(n)
