#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); int n, w, h; string s; cin >> n >> w >> h >> s; vector Grid(h, vector(w, 'x')); int i = h - 1, j = 0; for (char c : s) { if (c == 'o') { Grid[i--][j] = 'o'; } else { assert(c == 'l'); i = h - 1, ++j; } } rep(i, h) { rep(j, w) cout << Grid[i][j]; cout << '\n'; } return 0; }