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

if(a>(w//2) and b>(h//2)):
    print('No')
else:
    for i in range(h):
        if(i<b):
            print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]))
        else:
            print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)]))
 h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b if(a>(w//2) and b>(h//2)):
    print('No')
else:
    for i in range(h):
        if(i<b):
            print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]))
        else:
            print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)])) a>(w//2) and b>(h//2) a>(w//2) a w//2 w 2 b>(h//2) b h//2 h 2 print('No') print 'No' for i in range(h):
        if(i<b):
            print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]))
        else:
            print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)])) i range(h) range h if(i<b):
            print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]))
        else:
            print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)])) i<b i b '0' for _ in range(a) for _ in range(a) _ range(a) range a for _ in range(a) '0' print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)])) print ''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]) ''.join(['0' for _ in range(a)]) ''.join '' join ['0' for _ in range(a)] ''.join(['1' for _ in range(w-a)]) ''.join '' join ['1' for _ in range(w-a)] '1' for _ in range(a) for _ in range(a) _ range(a) range a for _ in range(a) '1' print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)])) print ''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)]) ''.join(['1' for _ in range(a)]) ''.join '' join ['1' for _ in range(a)] ''.join(['0' for _ in range(w-a)]) ''.join '' join ['0' for _ in range(w-a)] b=map(int,input().split()) map(int,input().split()) b a,b=map(int,input().split()) map(int,input().split()) a h,w,a,b=map(int,input().split()) map(int,input().split()) h w,a,b=map(int,input().split()) map(int,input().split()) w
h,w,a,b=map(int,input().split())

if(a>(w//2) and b>(h//2)):
    print('No')
else:
    for i in range(h):
        if(i<b):
            print(''.join(['0' for _ in range(a)]) + ''.join(['1' for _ in range(w-a)]))
        else:
            print(''.join(['1' for _ in range(a)]) + ''.join(['0' for _ in range(w-a)]))

