h, w, a, b = map(int,input().split())

list_s = [0 for i in range(a)]
list_t = [1 for i in range(a)]

while len(list_s) != w:
    list_s.append(1)
    list_t.append(0)

s = ''.join(map(str, list_s))
t = ''.join(map(str, list_t))

for i in range(h):
    if i < b:
        print(s)
    else:
        print(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 for i in range(a) for i in range(a) i range(a) range a for i in range(a) 0 list_s = [0 for i in range(a)] list_s [0 for i in range(a)] 1 for i in range(a) for i in range(a) i range(a) range a for i in range(a) 1 list_t = [1 for i in range(a)] list_t [1 for i in range(a)] while len(list_s) != w:
    list_s.append(1)
    list_t.append(0) len(list_s) != w len(list_s) len list_s w list_s.append(1) list_s.append list_s append 1 list_t.append(0) list_t.append list_t append 0 s = ''.join(map(str, list_s)) s ''.join(map(str, list_s)) ''.join '' join map(str, list_s) map str list_s t = ''.join(map(str, list_t)) t ''.join(map(str, list_t)) ''.join '' join map(str, list_t) map str list_t for i in range(h):
    if i < b:
        print(s)
    else:
        print(t) i range(h) range h if i < b:
        print(s)
    else:
        print(t) i < b i b print(s) print s print(t) print t list_t = [1 for i in range(a)] [1 for i in range(a)] list_t b = map(int,input().split()) map(int,input().split()) b list_s = [0 for i in range(a)] [0 for i in range(a)] list_s w, a, b = map(int,input().split()) map(int,input().split()) w t = ''.join(map(str, list_t)) ''.join(map(str, list_t)) t h, w, a, b = map(int,input().split()) map(int,input().split()) h s = ''.join(map(str, list_s)) ''.join(map(str, list_s)) s a, b = map(int,input().split()) map(int,input().split()) a
h, w, a, b = map(int,input().split())

list_s = [0 for i in range(a)]
list_t = [1 for i in range(a)]

while len(list_s) != w:
    list_s.append(1)
    list_t.append(0)

s = ''.join(map(str, list_s))
t = ''.join(map(str, list_t))

for i in range(h):
    if i < b:
        print(s)
    else:
        print(t)
