x = int(input())
i = 0
j = 0
while i < x:
    j = 0
    while j < x:
        print("*", end="")
        j += 1
    print()
    i +=1