Search for a massive resonance decaying into a higgs boson and a W or Z boson in hadronic final states in proton-proton collisions at (Formula presented) = 8 TeV