h,w,a,b=map(int,input().split())
c="1"*a+"0"*(w-a)
d="0"*a+"1"*(w-a)
for i in range(h):
    if i<b:
        print(c)
    else:
        print(d) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b c="1"*a+"0"*(w-a) c "1"*a+"0"*(w-a) "1"*a "1" a "0"*(w-a) "0" w-a w a d="0"*a+"1"*(w-a) d "0"*a+"1"*(w-a) "0"*a "0" a "1"*(w-a) "1" w-a w a for i in range(h):
    if i<b:
        print(c)
    else:
        print(d) i range(h) range h if i<b:
        print(c)
    else:
        print(d) i<b i b print(c) print c print(d) print d h,w,a,b=map(int,input().split()) map(int,input().split()) h d="0"*a+"1"*(w-a) "0"*a+"1"*(w-a) d a,b=map(int,input().split()) map(int,input().split()) a c="1"*a+"0"*(w-a) "1"*a+"0"*(w-a) c w,a,b=map(int,input().split()) map(int,input().split()) w b=map(int,input().split()) map(int,input().split()) b
h,w,a,b=map(int,input().split())
c="1"*a+"0"*(w-a)
d="0"*a+"1"*(w-a)
for i in range(h):
    if i<b:
        print(c)
    else:
        print(d)