/* -*- coding: utf-8 -*- * * 3420.cc: No.3420 Letter Loading - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 2549; const int MAX_W = 50; const int MAX_H = 50; /* typedef */ /* global variables */ char s[MAX_N + 4]; char fs[MAX_H][MAX_W + 4]; /* subroutines */ /* main */ int main() { int n, w, h; scanf("%d%d%d%s", &n, &w, &h, s); for (int i = 0; i < h; i++) fill(fs[i], fs[i] + w, 'x'); for (int i = 0, y = 0, x = 0; i < n; i++) { if (s[i] == 'o') fs[y++][x] = 'o'; else x++, y = 0; } for (int i = h - 1; i >= 0; i--) puts(fs[i]); return 0; }