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