h,w,a,b = map(int,input().split())
s = [['0' for i in range(w)] for j in range(h)]
for i in range(h):
    for j in range(w):
        if (i < b and j >= a) or (i >= b and j < a):
            s[i][j] = '1'
    print(''.join(map(str,s[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' for i in range(w)] for j in range(h) for j in range(h) j range(h) range h for j in range(h) ['0' for i in range(w)] s = [['0' for i in range(w)] for j in range(h)] s [['0' for i in range(w)] for j in range(h)] for i in range(h):
    for j in range(w):
        if (i < b and j >= a) or (i >= b and j < a):
            s[i][j] = '1'
    print(''.join(map(str,s[i]))) i range(h) range h for j in range(w):
        if (i < b and j >= a) or (i >= b and j < a):
            s[i][j] = '1'
     j range(w) range w if (i < b and j >= a) or (i >= b and j < a):
            s[i][j] = '1'
     (i < b and j >= a) or (i >= b and j < a) i < b and j >= a i < b i b j >= a j a i >= b and j < a i >= b i b j < a j a s[i][j] = '1' s[i][j] [i] s i j '1' print(''.join(map(str,s[i]))) print ''.join(map(str,s[i])) ''.join '' join map(str,s[i]) map str s[i] s i s = [['0' for i in range(w)] for j in range(h)] [['0' for i in range(w)] for j in range(h)] s b = map(int,input().split()) map(int,input().split()) b w,a,b = map(int,input().split()) map(int,input().split()) w a,b = map(int,input().split()) map(int,input().split()) a h,w,a,b = map(int,input().split()) map(int,input().split()) h
h,w,a,b = map(int,input().split())
s = [['0' for i in range(w)] for j in range(h)]
for i in range(h):
    for j in range(w):
        if (i < b and j >= a) or (i >= b and j < a):
            s[i][j] = '1'
    print(''.join(map(str,s[i])))