h,w,a,b=map(int,input().split())
for i in range(h):
    if i<=b-1:
        lists="0"*a+"1"*(w-a)
        print(lists)
    else:
        lists="1"*a+"0"*(w-a)
        print(lists) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b for i in range(h):
    if i<=b-1:
        lists="0"*a+"1"*(w-a)
        print(lists)
    else:
        lists="1"*a+"0"*(w-a)
        print(lists) i range(h) range h if i<=b-1:
        lists="0"*a+"1"*(w-a)
        print(lists)
    else:
        lists="1"*a+"0"*(w-a)
        print(lists) i<=b-1 i b-1 b 1 lists="0"*a+"1"*(w-a) lists "0"*a+"1"*(w-a) "0"*a "0" a "1"*(w-a) "1" w-a w a print(lists) print lists lists="1"*a+"0"*(w-a) lists "1"*a+"0"*(w-a) "1"*a "1" a "0"*(w-a) "0" w-a w a print(lists) print lists lists="1"*a+"0"*(w-a) "1"*a+"0"*(w-a) lists b=map(int,input().split()) map(int,input().split()) b 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 lists="0"*a+"1"*(w-a) "0"*a+"1"*(w-a) lists a,b=map(int,input().split()) map(int,input().split()) a
h,w,a,b=map(int,input().split())
for i in range(h):
    if i<=b-1:
        lists="0"*a+"1"*(w-a)
        print(lists)
    else:
        lists="1"*a+"0"*(w-a)
        print(lists)