H, W, A, B = map(int, input().split())

for h in range(B):
    print("1"*A+"0"*(W-A))
for h in range(H-B):
    print("0"*A+"1"*(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 h in range(B):
    print("1"*A+"0"*(W-A)) h range(B) range B print("1"*A+"0"*(W-A)) print "1"*A+"0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A for h in range(H-B):
    print("0"*A+"1"*(W-A)) h range(H-B) range H-B H B print("0"*A+"1"*(W-A)) print "0"*A+"1"*(W-A) "0"*A "0" A "1"*(W-A) "1" W-A W A A, B = map(int, input().split()) map(int, input().split()) A B = map(int, input().split()) map(int, input().split()) B H, W, A, B = map(int, input().split()) map(int, input().split()) H W, A, B = map(int, input().split()) map(int, input().split()) W
H, W, A, B = map(int, input().split())

for h in range(B):
    print("1"*A+"0"*(W-A))
for h in range(H-B):
    print("0"*A+"1"*(W-A))