#!/usr/bin/env python3

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

for h_tmp in range(h):
    for w_tmp in range(w):
        if (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b):
            print(0, end="")
        else:
            print(1, end="")
    print() h, w, a, b = list(map(int, input().split())) h list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split w a b for h_tmp in range(h):
    for w_tmp in range(w):
        if (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b):
            print(0, end="")
        else:
            print(1, end="")
    print() h_tmp range(h) range h for w_tmp in range(w):
        if (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b):
            print(0, end="")
        else:
            print(1, end="")
     w_tmp range(w) range w if (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b):
            print(0, end="")
        else:
            print(1, end="")
     (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b) w_tmp < a and h_tmp < b w_tmp < a w_tmp a h_tmp < b h_tmp b w_tmp >= a and h_tmp >= b w_tmp >= a w_tmp a h_tmp >= b h_tmp b print(0, end="") print 0 end="" end "" print(1, end="") print 1 end="" end "" print() print a, b = list(map(int, input().split())) list(map(int, input().split())) a w, a, b = list(map(int, input().split())) list(map(int, input().split())) w h, w, a, b = list(map(int, input().split())) list(map(int, input().split())) h b = list(map(int, input().split())) list(map(int, input().split())) b
#!/usr/bin/env python3

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

for h_tmp in range(h):
    for w_tmp in range(w):
        if (w_tmp < a and h_tmp < b) or (w_tmp >= a and h_tmp >= b):
            print(0, end="")
        else:
            print(1, end="")
    print()
