list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

n = int(input())

for i in range(3):
    for j in range(3):
        list[i][j] *= n
print(list)