import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


H,W,A,B = MI()
for _ in range(B):
    print(''.join(['0']*A+['1']*(W-A)))
for _ in range(H-B):
    print(''.join(['1']*A+['0']*(W-A))) import sys sys def MI(): return map(int,sys.stdin.readline().rstrip().split()) MI H,W,A,B = MI() H MI() MI W A B for _ in range(B):
    print(''.join(['0']*A+['1']*(W-A))) _ range(B) range B 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 for _ in range(H-B):
    print(''.join(['1']*A+['0']*(W-A))) _ range(H-B) range H-B H 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 B = MI() MI() B def MI(): return map(int,sys.stdin.readline().rstrip().split()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) MI H,W,A,B = MI() MI() H A,B = MI() MI() A W,A,B = MI() MI() W
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


H,W,A,B = MI()
for _ in range(B):
    print(''.join(['0']*A+['1']*(W-A)))
for _ in range(H-B):
    print(''.join(['1']*A+['0']*(W-A)))
