h, w, a, b = map(int, input().split())
s = [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)]
for _ in range(h-b):
  s.append([0 for i in range(a)] + [1 for i in range(w-a)])
for i in range(h):
  print(''.join(list(map(str, s[i])))) h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b [1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b) for _ in range(b) _ range(b) range b for _ in range(b) [1 for _ in range(a)] + [0 for _ in range(w-a)] [1 for _ in range(a)] [0 for _ in range(w-a)] s = [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)] s [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)] for _ in range(h-b):
  s.append([0 for i in range(a)] + [1 for i in range(w-a)]) _ range(h-b) range h-b h b 0 for i in range(a) for i in range(a) i range(a) range a for i in range(a) 0 s.append([0 for i in range(a)] + [1 for i in range(w-a)]) s.append s append [0 for i in range(a)] + [1 for i in range(w-a)] [0 for i in range(a)] [1 for i in range(w-a)] for i in range(h):
  print(''.join(list(map(str, s[i])))) i range(h) range h print(''.join(list(map(str, s[i])))) print ''.join(list(map(str, s[i]))) ''.join '' join list(map(str, s[i])) list map(str, s[i]) map str s[i] s i a, b = map(int, input().split()) map(int, input().split()) a 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 s = [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)] [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)] s
h, w, a, b = map(int, input().split())
s = [[1 for _ in range(a)] + [0 for _ in range(w-a)] for _ in range(b)]
for _ in range(h-b):
  s.append([0 for i in range(a)] + [1 for i in range(w-a)])
for i in range(h):
  print(''.join(list(map(str, s[i]))))