# Arup Guha
# 2/5/2020
# Prints a right-justified triangle out of star characters,
# without using the * operator.

def main():

    n = int(input("How many rows do you want?\n"))

    # i represents the row we are printing
    for i in range(n):

        # We need to print n-1-i # of spaces.
        for j in range(n-1-i):
            print(" ",sep="",end="")
            
        # We need to print i+1 stars here.
        for j in range(i+1):
            print("*",sep="",end="")

        # Advances to the next line.
        print()

main()
