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