#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ int n,w,h; string s; cin>>n>>w>>h>>s; vector num(w, 0); int x = 0; rep(i,n){ if(s[i] == 'o'){ num[x] += 1; continue; }else if(s[i] == 'l'){ x += 1; } } rep(i, h){ rep(j,w){ if(num[j] >= h - i){ num[j] -= 1; cout << 'o'; }else{ cout << 'x'; } } cout << endl; } }