n = io.read("*n") t = {} for i = 0, n do for j = 0, n do table.insert(t, 2^i * 5^j) end end table.sort(t) for k, v in pairs(t) do io.write(string.format("%d\n", v)) end