H, W, A, B = map(int, input().split())
ans = [[0 for w in range(W)] for h in range(H)]
for i in range(B):
    for j in range(A):
        ans[i][j] = 1
    print(''.join(map(str, ans[i])))
for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1
    print(''.join(map(str, 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 for w in range(W)] for h in range(H) for h in range(H) h range(H) range H for h in range(H) [0 for w in range(W)] ans = [[0 for w in range(W)] for h in range(H)] ans [[0 for w in range(W)] for h in range(H)] for i in range(B):
    for j in range(A):
        ans[i][j] = 1
    print(''.join(map(str, ans[i]))) i range(B) range B for j in range(A):
        ans[i][j] = 1
     j range(A) range A ans[i][j] = 1 ans[i][j] [i] ans i j 1 print(''.join(map(str, ans[i]))) print ''.join(map(str, ans[i])) ''.join '' join map(str, ans[i]) map str ans[i] ans i for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1
    print(''.join(map(str, ans[i]))) i range(B, H) range B H for j in range(A, W):
        ans[i][j] = 1
     j range(A, W) range A W ans[i][j] = 1 ans[i][j] [i] ans i j 1 print(''.join(map(str, ans[i]))) print ''.join(map(str, ans[i])) ''.join '' join map(str, ans[i]) map str ans[i] ans i W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B A, B = map(int, input().split()) map(int, input().split()) A H, W, A, B = map(int, input().split()) map(int, input().split()) H ans = [[0 for w in range(W)] for h in range(H)] [[0 for w in range(W)] for h in range(H)] ans
H, W, A, B = map(int, input().split())
ans = [[0 for w in range(W)] for h in range(H)]
for i in range(B):
    for j in range(A):
        ans[i][j] = 1
    print(''.join(map(str, ans[i])))
for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1
    print(''.join(map(str, ans[i])))