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

ans = [['1' if (h<B and w<A) or (B<=h and A<=w) else '0' for w in range(W)] for h in range(H)]

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

ans = [['1' if (h<B and w<A) or (B<=h and A<=w) else '0' for w in range(W)] for h in range(H)]

for a in ans:
  print(''.join(a))