#include using namespace std; using ll = long long; using a2 = array; using a3 = array; bool chmin(auto& a, const auto& b) { return a > b ? a = b, 1 : 0; } bool chmax(auto& a, const auto& b) { return a < b ? a = b, 1 : 0; } ll mod = 998244353; const ll INF = 1e18; ifstream in; ofstream out; int main(int argc, char** argv) { ios::sync_with_stdio(false); cin.tie(0); if(argc > 2) { in.open(argv[1]); cin.rdbuf(in.rdbuf()); out.open(argv[2]); cout.rdbuf(out.rdbuf()); } ll n, w, h; cin >> n >> w >> h; string s; cin >> s; vector ans(h, string(w, 'x')); ll i = 0, j = 0; for(auto& x : s) { if(x == 'o') { ans[h - i - 1][j] = 'o'; i++; } else { i = 0; j++; } } for(auto& x : ans) { cout << x << endl; } return 0; }