# Arup Guha
# 4/27/2020
# Solution to COP 2930 Final Exam Part B: Problem 3 - Four Square

# Prompt user to enter both pieces of information.
n = int(input("Please enter the size of each square.\n"))

# Row value
for i in range(2*n+3):

    # Col value
    for j in range(2*n+3):

        # This condition turns out to be more simple that typically imagined.
        if i%(n+1) == 0 or j%(n+1) == 0:
            print("*", end="")

        # All other times we print a space.
        else:
            print(" ", end="")

    # Must advance to the next line.
    print()
