h,w,a,b = map(int,input().split())
ans = [["0"]*w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if (w-a<=j and h-b>i) or (w-a>j and h-b<=i):
            ans[i][j] = "1"
for i in range(h):
    print("".join(ans[i])) h,w,a,b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b ["0"]*w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) ["0"]*w ["0"] "0" w ans = [["0"]*w for _ in range(h)] ans [["0"]*w for _ in range(h)] for i in range(h):
    for j in range(w):
        if (w-a<=j and h-b>i) or (w-a>j and h-b<=i):
            ans[i][j] = "1" i range(h) range h for j in range(w):
        if (w-a<=j and h-b>i) or (w-a>j and h-b<=i):
            ans[i][j] = "1" j range(w) range w if (w-a<=j and h-b>i) or (w-a>j and h-b<=i):
            ans[i][j] = "1" (w-a<=j and h-b>i) or (w-a>j and h-b<=i) w-a<=j and h-b>i w-a<=j w-a w a j h-b>i h-b h b i w-a>j and h-b<=i w-a>j w-a w a j h-b<=i h-b h b i ans[i][j] = "1" ans[i][j] [i] ans i j "1" for i in range(h):
    print("".join(ans[i])) i range(h) range h print("".join(ans[i])) print "".join(ans[i]) "".join "" join ans[i] ans i b = map(int,input().split()) map(int,input().split()) b h,w,a,b = map(int,input().split()) map(int,input().split()) h ans = [["0"]*w for _ in range(h)] [["0"]*w for _ in range(h)] ans 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())
ans = [["0"]*w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if (w-a<=j and h-b>i) or (w-a>j and h-b<=i):
            ans[i][j] = "1"
for i in range(h):
    print("".join(ans[i]))