h, w, a, b = map(int, input().split())
for i in range(h):
    for j in range(w):
        print(int((j < a) ^ (i < b)), end='')
    print() 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):
    for j in range(w):
        print(int((j < a) ^ (i < b)), end='')
    print() i range(h) range h for j in range(w):
        print(int((j < a) ^ (i < b)), end='')
     j range(w) range w print(int((j < a) ^ (i < b)), end='') print int((j < a) ^ (i < b)) int (j < a) ^ (i < b) j < a j a i < b i b end='' end '' print() print b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a w, a, b = map(int, input().split()) map(int, input().split()) w h, w, a, b = map(int, input().split()) map(int, input().split()) h
h, w, a, b = map(int, input().split())
for i in range(h):
    for j in range(w):
        print(int((j < a) ^ (i < b)), end='')
    print()