function solve(w, h, s) cnts = length.(split(s, 'l')) len = length(cnts) f(cnt) = lpad('o'^cnt, h, 'x') xs = [i <= len ? f(cnts[i]) : repeat('x', h) for i in 1:w] arr = [] for i in 1:h a = "" for j in 1:w a *= xs[j][i] end push!(arr, a) end join(arr, '\n') end function main() _, w, h = parse.(Int, split(readline())) s = readline() result = solve(w, h, s) println(result) end main()