# Arup Guha

def main():

    numRows = int(input("rows?\n"))
    numStarsFirstRow = int(input("stars on first row?\n"))

    for row in range(numRows):

        # Calculate number of stars I am drawing.
        draw = numStarsFirstRow
        if row%2 == 1:
            draw -= 1
            print(" ", end="")

        # Draw the correct # of stars.
        for i in range(draw):
            print("* ", end="")

        # Go to the next line.
        print()

main()

            
