h, w, a, b = map(int,input().split())
A = [[0] * w for i in range(h)]
for i in range(h):
    for j in range(w):
        A[i][j] = int((j < a) ^ (i < b))

for i in range(h):
    print("".join([str(j) for j in A[i]])) h, w, a, b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b [0] * w for i in range(h) for i in range(h) i range(h) range h for i in range(h) [0] * w [0] 0 w A = [[0] * w for i in range(h)] A [[0] * w for i in range(h)] for i in range(h):
    for j in range(w):
        A[i][j] = int((j < a) ^ (i < b)) i range(h) range h for j in range(w):
        A[i][j] = int((j < a) ^ (i < b)) j range(w) range w A[i][j] = int((j < a) ^ (i < b)) A[i][j] [i] A i j int((j < a) ^ (i < b)) int (j < a) ^ (i < b) j < a j a i < b i b for i in range(h):
    print("".join([str(j) for j in A[i]])) i range(h) range h str(j) for j in A[i] for j in A[i] j A[i] A i for j in A[i] str(j) str j print("".join([str(j) for j in A[i]])) print "".join([str(j) for j in A[i]]) "".join "" join [str(j) for j in A[i]] A = [[0] * w for i in range(h)] [[0] * w for i in range(h)] 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()) map(int,input().split()) h
h, w, a, b = map(int,input().split())
A = [[0] * w for i in range(h)]
for i in range(h):
    for j in range(w):
        A[i][j] = int((j < a) ^ (i < b))

for i in range(h):
    print("".join([str(j) for j in A[i]]))