#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, w, h; cin >> n >> w >> h; string s; cin >> s; vector a(w); for(int i = 0, cur = 0; i < n; ){ int p = i; while(i < n && s[i] == s[p]) i++; if(s[p] == 'o') a[cur] = i - p; else cur++; } vector ans(h, string(w, 'x')); for(int x = 0; x < w; x++){ for(int y = 0; y < h && y < a[x]; y++){ ans[h - 1 - y][x] = 'o'; } } for(auto &&str : ans) cout << str << '\n'; }