n = io.read("*n") for i = n, 1, -1 do for j = 1, i , 1 do io.write(n) end io.write("\n") end