h,w,a,b=map(int,input().split())

ans=[[0]*w for _ in range(h)]

for r in range(h):
    for c in range(w):
        if (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w):
            ans[r][c]+=1
    
    print(''.join([str(c) for c in ans[r]])) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b [0]*w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) [0]*w [0] 0 w ans=[[0]*w for _ in range(h)] ans [[0]*w for _ in range(h)] for r in range(h):
    for c in range(w):
        if (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w):
            ans[r][c]+=1
    
    print(''.join([str(c) for c in ans[r]])) r range(h) range h for c in range(w):
        if (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w):
            ans[r][c]+=1
    
     c range(w) range w if (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w):
            ans[r][c]+=1
    
     (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w) 0<=r<b and 0<=c<a 0<=r<b 0<=r 0 r b 0<=c<a 0<=c 0 c a b<=r<h and a<=c<w b<=r<h b<=r b r h a<=c<w a<=c a c w ans[r][c]+=1 ans[r][c] [r] ans r c 1 str(c) for c in ans[r] for c in ans[r] c ans[r] ans r for c in ans[r] str(c) str c print(''.join([str(c) for c in ans[r]])) print ''.join([str(c) for c in ans[r]]) ''.join '' join [str(c) for c in ans[r]] b=map(int,input().split()) map(int,input().split()) b w,a,b=map(int,input().split()) map(int,input().split()) w a,b=map(int,input().split()) map(int,input().split()) a ans=[[0]*w for _ in range(h)] [[0]*w for _ in range(h)] ans h,w,a,b=map(int,input().split()) map(int,input().split()) h
h,w,a,b=map(int,input().split())

ans=[[0]*w for _ in range(h)]

for r in range(h):
    for c in range(w):
        if (0<=r<b and 0<=c<a) or (b<=r<h and a<=c<w):
            ans[r][c]+=1
    
    print(''.join([str(c) for c in ans[r]]))