h, w, a, b = (int(x) for x in input().split())
S = [[""] * w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w):
            S[i][j] = '1'
        else:
            S[i][j] = '0'

for ans in S:
    print("".join(ans)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x h, w, a, b = (int(x) for x in input().split()) h (int(x) for x in input().split()) w a b [""] * w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) [""] * w [""] "" w S = [[""] * w for _ in range(h)] S [[""] * w for _ in range(h)] for i in range(h):
    for j in range(w):
        if (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w):
            S[i][j] = '1'
        else:
            S[i][j] = '0' i range(h) range h for j in range(w):
        if (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w):
            S[i][j] = '1'
        else:
            S[i][j] = '0' j range(w) range w if (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w):
            S[i][j] = '1'
        else:
            S[i][j] = '0' (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w) 0 <= i < b and 0 <= j < a 0 <= i < b 0 <= i 0 i b 0 <= j < a 0 <= j 0 j a b <= i < h and a <= j < w b <= i < h b <= i b i h a <= j < w a <= j a j w S[i][j] = '1' S[i][j] [i] S i j '1' S[i][j] = '0' S[i][j] [i] S i j '0' for ans in S:
    print("".join(ans)) ans S print("".join(ans)) print "".join(ans) "".join "" join ans h, w, a, b = (int(x) for x in input().split()) (int(x) for x in input().split()) h b = (int(x) for x in input().split()) (int(x) for x in input().split()) b a, b = (int(x) for x in input().split()) (int(x) for x in input().split()) a S = [[""] * w for _ in range(h)] [[""] * w for _ in range(h)] S w, a, b = (int(x) for x in input().split()) (int(x) for x in input().split()) w
h, w, a, b = (int(x) for x in input().split())
S = [[""] * w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if (0 <= i < b and 0 <= j < a) or (b <= i < h and a <= j < w):
            S[i][j] = '1'
        else:
            S[i][j] = '0'

for ans in S:
    print("".join(ans))
