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

ansl = [[-1]*w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if i < b and j < a:
            ansl[i][j] = '0'
        elif i >= b and j >= a:
            ansl[i][j] = '0'
        else:
            ansl[i][j] = '1'

for a in ansl:
    print(''.join(a))
 h,w,a,b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b [-1]*w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) [-1]*w [-1] -1 w ansl = [[-1]*w for _ in range(h)] ansl [[-1]*w for _ in range(h)] for i in range(h):
    for j in range(w):
        if i < b and j < a:
            ansl[i][j] = '0'
        elif i >= b and j >= a:
            ansl[i][j] = '0'
        else:
            ansl[i][j] = '1' i range(h) range h for j in range(w):
        if i < b and j < a:
            ansl[i][j] = '0'
        elif i >= b and j >= a:
            ansl[i][j] = '0'
        else:
            ansl[i][j] = '1' j range(w) range w if i < b and j < a:
            ansl[i][j] = '0'
        elif i >= b and j >= a:
            ansl[i][j] = '0'
        else:
            ansl[i][j] = '1' i < b and j < a i < b i b j < a j a ansl[i][j] = '0' ansl[i][j] [i] ansl i j '0' elif i >= b and j >= a:
            ansl[i][j] = '0'
         i >= b and j >= a i >= b i b j >= a j a ansl[i][j] = '0' ansl[i][j] [i] ansl i j '0' ansl[i][j] = '1' ansl[i][j] [i] ansl i j '1' for a in ansl:
    print(''.join(a)) a ansl print(''.join(a)) print ''.join(a) ''.join '' join a b = map(int, input().split()) map(int, input().split()) b 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 a,b = map(int, input().split()) map(int, input().split()) a ansl = [[-1]*w for _ in range(h)] [[-1]*w for _ in range(h)] ansl
h,w,a,b = map(int, input().split())

ansl = [[-1]*w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if i < b and j < a:
            ansl[i][j] = '0'
        elif i >= b and j >= a:
            ansl[i][j] = '0'
        else:
            ansl[i][j] = '1'

for a in ansl:
    print(''.join(a))

