Search for massive resonances in dijet systems containing jets tagged as W or Z boson decays in pp collisions at (Formula presented.) = 8 TeV