def main():
  H, W, A, B = map(int, input().split())
  ans = [['0']*W for _ in range(H)]
  for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
  for i in range(H):
    print(''.join(ans[i]))
    
if __name__ == "__main__":
  main() def main():
  H, W, A, B = map(int, input().split())
  ans = [['0']*W for _ in range(H)]
  for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
  for i in range(H):
    print(''.join(ans[i]))
     main 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 ans = [['0']*W for _ in range(H)] ans [['0']*W for _ in range(H)] for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
   i range(H) range H for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
   j range(W) range W if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
   (i < B and j < A) or (i >= B and j >= A) i < B and j < A i < B i B j < A j A i >= B and j >= A i >= B i B j >= A j A ans[i][j] = '1' ans[i][j] [i] ans i j '1' for i in range(H):
    print(''.join(ans[i]))
     i range(H) range H print(''.join(ans[i])) print ''.join(ans[i]) ''.join '' join ans[i] ans i if __name__ == "__main__":
  main() __name__ == "__main__" __name__ "__main__" main() main def main():
  H, W, A, B = map(int, input().split())
  ans = [['0']*W for _ in range(H)]
  for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
  for i in range(H):
    print(''.join(ans[i]))
     def main():
  H, W, A, B = map(int, input().split())
  ans = [['0']*W for _ in range(H)]
  for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
  for i in range(H):
    print(''.join(ans[i]))
     main
def main():
  H, W, A, B = map(int, input().split())
  ans = [['0']*W for _ in range(H)]
  for i in range(H):
    for j in range(W):
      if (i < B and j < A) or (i >= B and j >= A):
        ans[i][j] = '1'
  for i in range(H):
    print(''.join(ans[i]))
    
if __name__ == "__main__":
  main()