n, w, h = map(int, input().split()); assert 1 <= n <= 2549 and 1 <= w <= 50 and 1 <= h <= 50 A = list(map(lambda x: len(x), input().split("l"))) for s in [["o" if h-y <= A[x] else "x" for x in range(w)] for y in range(h)]: print("".join(s))