I=input N,W,H=map(int,I().split()) A=[""]*H S=I().split('l') S+=[""]*(W-len(S)) for s in S: for i in range(H):A[i]+="xo"[H-i-1