function Main(input) {
  input = input.split("\n");
  n = input[0].split(" ").map(Number);
  h = new Array(n[0]);
  w = new Array(n[1]);
  for(var k=0;k<n[0];k++){
    h[k] = n[2];
  }
  for(var l=0;l<n[1];l++){
    w[l] = n[3];
  }
  function check(v) {
    return v != 0;
  }
  var ans = "";
  for(var i=0;i<n[0];i++){
    for(var j=0;j<n[1];j++){
      if(h[i]>0 && w[j]>0){
        ans+="1";
        h[i]--;
        w[j]--;
      }else if(w[j]>0 && n[2]==0){
        ans+=1;
        w[j]--;
      }else if(h[i]>0 && n[3]==0){
        ans+=1;
        h[i]--;
      }else{
        ans+="0";
      }
    }
    ans+="\n";
  }
  if(h.every(check) || w.every(check)){
    console.log("No");
  }else{
    console.log(ans);
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));