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

current = [i for i in range(a)]
cnt = 0
for i in range(h):
    if i < b:
        s = [str(0) if i < a else str(1) for i in range(w)]
    else:
        s = [str(1) if i < a else str(0) for i in range(w)]
    print(''.join(s)) h,w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b i for i in range(a) for i in range(a) i range(a) range a for i in range(a) i current = [i for i in range(a)] current [i for i in range(a)] cnt = 0 cnt 0 for i in range(h):
    if i < b:
        s = [str(0) if i < a else str(1) for i in range(w)]
    else:
        s = [str(1) if i < a else str(0) for i in range(w)]
    print(''.join(s)) i range(h) range h if i < b:
        s = [str(0) if i < a else str(1) for i in range(w)]
    else:
        s = [str(1) if i < a else str(0) for i in range(w)]
     i < b i b str(0) if i < a else str(1) for i in range(w) for i in range(w) i range(w) range w for i in range(w) str(0) if i < a else str(1) i < a i a str(0) str 0 str(1) str 1 s = [str(0) if i < a else str(1) for i in range(w)] s [str(0) if i < a else str(1) for i in range(w)] str(1) if i < a else str(0) for i in range(w) for i in range(w) i range(w) range w for i in range(w) str(1) if i < a else str(0) i < a i a str(1) str 1 str(0) str 0 s = [str(1) if i < a else str(0) for i in range(w)] s [str(1) if i < a else str(0) for i in range(w)] print(''.join(s)) print ''.join(s) ''.join '' join s s = [str(1) if i < a else str(0) for i in range(w)] [str(1) if i < a else str(0) for i in range(w)] s h,w, a, b = map(int, input().split()) map(int, input().split()) h a, b = map(int, input().split()) map(int, input().split()) a cnt = 0 0 cnt current = [i for i in range(a)] [i for i in range(a)] current s = [str(0) if i < a else str(1) for i in range(w)] [str(0) if i < a else str(1) for i in range(w)] s w, a, b = map(int, input().split()) map(int, input().split()) w b = map(int, input().split()) map(int, input().split()) b
h,w, a, b = map(int, input().split())

current = [i for i in range(a)]
cnt = 0
for i in range(h):
    if i < b:
        s = [str(0) if i < a else str(1) for i in range(w)]
    else:
        s = [str(1) if i < a else str(0) for i in range(w)]
    print(''.join(s))
