local n = io.read("*n") local hn = math.floor(n / 2) local t = {{}, {}} for i = 1, hn do for j = 1, hn - i do t[1][2 * j - 1] = 0 t[2][2 * j - 1] = 0 t[1][2 * j] = 0 t[2][2 * j] = 0 end t[1][2 * (hn + 1 - i) - 1] = 0 t[2][2 * (hn + 1 - i) - 1] = 1 t[1][2 * (hn + 1 - i)] = 0 t[2][2 * (hn + 1 - i)] = 2 for j = hn + 2 - i, hn do t[1][2 * j - 1] = 2 t[2][2 * j - 1] = 2 t[1][2 * j] = 2 t[2][2 * j] = 2 end print(table.concat(t[1])) print(table.concat(t[2])) end