import sys input = sys.stdin.readline N,W,H=map(int,input().split()) S=input().strip() ANS=[["x"]*W for i in range(H)] x=H-1 y=0 for s in S: if s=="o": ANS[x][y]="o" x-=1 else: x=H-1 y+=1 for ans in ANS: print("".join(ans))