#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include #define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) using namespace atcoder; using namespace std; typedef long long ll; vector> run_length_str(string &a) { int n = a.size(); vector> ret; int now = 1; rep(i, 0, n - 1) { if (a[i] == a[i + 1]) now++; else { ret.push_back(make_pair(a[i], now)); now = 1; } } ret.push_back(make_pair(a.back(), now)); return ret; } void solve() { int n, w, h; string s; cin >> n >> w >> h >> s; vector ans(h, vector(w, 'x')); auto rl = run_length_str(s); vector a; int idx = 0; for (auto [c, l] : rl) { if (c == 'l') { idx++; continue; } a.emplace_back(l); } rep(i, 0, w) rep(j, 0, a[i]) ans[j][i] = 'o'; reverse(ans.begin(), ans.end()); rep(i, 0, h) { rep(j, 0, w) cout << ans[i][j]; cout << endl; } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); solve(); }