def readfile(filename):
    r = []
    with open(filename) as f:
        s = f.readline()
        while s != '':
            r.append([int(z) for z in s.split()]),
            s = f.readline()
    return r

def printfile(filename, r):
    with open(filename,'w') as f:
        for x in r:
            f.write(' '.join([str(z) for z in x])+'\n')

def create_zeros(n):
    return [[0 for i in range(n)] for j in range(n)]

n = int(input('n:'))
x = create_zeros(n)
# x = readfile('input.txt')
printfile('output.txt', x)