while 1:
    try:
        n = int(input())
        for i in range(n):
            print("* "*n)
    except:
        break