h, w, a, b = map(int, input().split())
for i in range(h):
    if i < b: print("0"*a+"1"*(w-a))
    else: print("1"*a+"0"*(w-a)) h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b for i in range(h):
    if i < b: print("0"*a+"1"*(w-a))
    else: print("1"*a+"0"*(w-a)) i range(h) range h if i < b: print("0"*a+"1"*(w-a))
    else: print("1"*a+"0"*(w-a)) i < b i b 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())
for i in range(h):
    if i < b: print("0"*a+"1"*(w-a))
    else: print("1"*a+"0"*(w-a))