H, W, A, B = map(int, input().split())
row = [A, W-A]
col = [B, H-B]
ans = ''
for i in [0, 1]:
    for y in range(col[i]):
        for j in [0, 1]:
            for x in range(row[j]):
                ans += str(j^i)
        ans +='\n'
print(ans) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B row = [A, W-A] row [A, W-A] A W-A W A col = [B, H-B] col [B, H-B] B H-B H B ans = '' ans '' for i in [0, 1]:
    for y in range(col[i]):
        for j in [0, 1]:
            for x in range(row[j]):
                ans += str(j^i)
        ans +='\n' i [0, 1] 0 1 for y in range(col[i]):
        for j in [0, 1]:
            for x in range(row[j]):
                ans += str(j^i)
        ans +='\n' y range(col[i]) range col[i] col i for j in [0, 1]:
            for x in range(row[j]):
                ans += str(j^i)
         j [0, 1] 0 1 for x in range(row[j]):
                ans += str(j^i)
         x range(row[j]) range row[j] row j ans += str(j^i) ans str(j^i) str j^i j i ans +='\n' ans '\n' print(ans) print ans row = [A, W-A] [A, W-A] row ans +='\n' '\n' ans A, B = map(int, input().split()) map(int, input().split()) A ans = '' '' ans ans += str(j^i) str(j^i) ans 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 B = map(int, input().split()) map(int, input().split()) B col = [B, H-B] [B, H-B] col
H, W, A, B = map(int, input().split())
row = [A, W-A]
col = [B, H-B]
ans = ''
for i in [0, 1]:
    for y in range(col[i]):
        for j in [0, 1]:
            for x in range(row[j]):
                ans += str(j^i)
        ans +='\n'
print(ans)