Y and Z in a cubic lattice with X atoms occupying the corners