h,w,a,b=map(int,input().split())
s = [[0 for _ in range(w)] for __ in range(h)]

for i in range(a):
    for j in range(b):
        s[j][i] = 1

for i in range(w-a):
    for j in range(h-b):
        s[b+j][a+i] = 1

for i in range(h):
    print(''.join([str(x) for x in s[i]])) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b [0 for _ in range(w)] for __ in range(h) for __ in range(h) __ range(h) range h for __ in range(h) [0 for _ in range(w)] s = [[0 for _ in range(w)] for __ in range(h)] s [[0 for _ in range(w)] for __ in range(h)] for i in range(a):
    for j in range(b):
        s[j][i] = 1 i range(a) range a for j in range(b):
        s[j][i] = 1 j range(b) range b s[j][i] = 1 s[j][i] [j] s j i 1 for i in range(w-a):
    for j in range(h-b):
        s[b+j][a+i] = 1 i range(w-a) range w-a w a for j in range(h-b):
        s[b+j][a+i] = 1 j range(h-b) range h-b h b s[b+j][a+i] = 1 s[b+j][a+i] [b+j] s b+j b j a+i a i 1 for i in range(h):
    print(''.join([str(x) for x in s[i]])) i range(h) range h str(x) for x in s[i] for x in s[i] x s[i] s i for x in s[i] str(x) str x print(''.join([str(x) for x in s[i]])) print ''.join([str(x) for x in s[i]]) ''.join '' join [str(x) for x in s[i]] a,b=map(int,input().split()) map(int,input().split()) a w,a,b=map(int,input().split()) map(int,input().split()) w h,w,a,b=map(int,input().split()) map(int,input().split()) h s = [[0 for _ in range(w)] for __ in range(h)] [[0 for _ in range(w)] for __ in range(h)] s b=map(int,input().split()) map(int,input().split()) b
h,w,a,b=map(int,input().split())
s = [[0 for _ in range(w)] for __ in range(h)]

for i in range(a):
    for j in range(b):
        s[j][i] = 1

for i in range(w-a):
    for j in range(h-b):
        s[b+j][a+i] = 1

for i in range(h):
    print(''.join([str(x) for x in s[i]]))