N,W,H=map(int,input().split()) S=input().split("l") a=["" for _ in range(W)] for w in range(W): if w