from itertools import groupby N, W, H = [int(s) for s in input().split()] S = [s for s in input()] rle = [(s, len(list(lis))) for s, lis in groupby(S)] answer = [["x"] * W for _ in range(H)] j = 0 for s, cnt in rle: if s == "l": continue for i in range(cnt): answer[H - i - 1][j] = "o" j += 1 for row in answer: print(*row, sep="")