#[allow(unused_imports)] use proconio::{input, marker::Chars}; fn main() { input! { n: usize, w: usize, h: usize, s: Chars } let mut a = vec![vec!['x'; h]; w]; let mut x = 0; let mut y = 0; for i in 0..n { if s[i] == 'o' { a[x][y] = 'o'; y += 1; continue; } else if s[i] == 'l' { y = 0; x += 1; } } for i in 0..h { for j in 0..w { print!("{}", a[j][h - 1 - i]); } println!(); } }