import sys
input = sys.stdin.readline
H, W, A, B = map(int, input().split())
res = [[0] * W for _ in range(H)]
for i in range(B):
  for j in range(A): res[i][j] = 1
for i in range(B, H):
  for j in range(A, W): res[i][j] = 1
for r in res: print("".join(list(map(str, r)))) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline 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 res = [[0] * W for _ in range(H)] res [[0] * W for _ in range(H)] for i in range(B):
  for j in range(A): res[i][j] = 1 i range(B) range B for j in range(A): res[i][j] = j range(A) range A for i in range(B, H):
  for j in range(A, W): res[i][j] = 1 i range(B, H) range B H for j in range(A, W): res[i][j] = j range(A, W) range A W for r in res: print("".join(list(map(str, r)))) r res 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 res = [[0] * W for _ in range(H)] [[0] * W for _ in range(H)] res input = sys.stdin.readline sys.stdin.readline input A, B = map(int, input().split()) map(int, input().split()) A B = map(int, input().split()) map(int, input().split()) B
import sys
input = sys.stdin.readline
H, W, A, B = map(int, input().split())
res = [[0] * W for _ in range(H)]
for i in range(B):
  for j in range(A): res[i][j] = 1
for i in range(B, H):
  for j in range(A, W): res[i][j] = 1
for r in res: print("".join(list(map(str, r))))