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