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