n = io.read("*n") for i = 1, n do d = io.read("*n") if d == 1 then print(10) else print("9" .. string.rep("0", d - 1)) end end