n=int(input())
if n>=2:
    for i in range(n):
        for j in range(n):
            print('*',end='')
        print()