import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

H, W, A, B = mapint()
for i in range(1, H+1):
    if i<=B:
        print(''.join((['1']*A+['0']*(W-A))))
    else:
        print(''.join(['0']*A+['1']*(W-A))) import sys sys def input(): return sys.stdin.readline().strip() input def mapint(): return map(int, input().split()) mapint sys.setrecursionlimit(10**9) sys.setrecursionlimit sys setrecursionlimit 10**9 10 9 H, W, A, B = mapint() H mapint() mapint W A B for i in range(1, H+1):
    if i<=B:
        print(''.join((['1']*A+['0']*(W-A))))
    else:
        print(''.join(['0']*A+['1']*(W-A))) i range(1, H+1) range 1 H+1 H 1 if i<=B:
        print(''.join((['1']*A+['0']*(W-A))))
    else:
        print(''.join(['0']*A+['1']*(W-A))) i<=B i B print(''.join((['1']*A+['0']*(W-A)))) print ''.join((['1']*A+['0']*(W-A))) ''.join '' join ['1']*A+['0']*(W-A) ['1']*A ['1'] '1' A ['0']*(W-A) ['0'] '0' W-A W A print(''.join(['0']*A+['1']*(W-A))) print ''.join(['0']*A+['1']*(W-A)) ''.join '' join ['0']*A+['1']*(W-A) ['0']*A ['0'] '0' A ['1']*(W-A) ['1'] '1' W-A W A W, A, B = mapint() mapint() W def mapint(): return map(int, input().split()) def mapint(): return map(int, input().split()) mapint H, W, A, B = mapint() mapint() H A, B = mapint() mapint() A def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input B = mapint() mapint() B
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

H, W, A, B = mapint()
for i in range(1, H+1):
    if i<=B:
        print(''.join((['1']*A+['0']*(W-A))))
    else:
        print(''.join(['0']*A+['1']*(W-A)))