This note presents a search for heavy resonances decaying to top quarks and Higgs bosons in all-hadronic final states. The benchmark model is pair-produced vector-like T quarks with charge 2/3. High masses of the T quarks are assumed so that the decay products are highly Lorentz-boosted, such that jets can overlap and get merged. Dedicated methods such as top-tagging and Higgs-tagging algorithms are applied to resolve the substructure of boosted jets. Upper limits on the production cross section of a T quark with masses between 500 GeV and 1000 GeV are derived. If the heavy T quark has an exclusive branching ratio , the observed (expected) lower limit on the mass of the T is 747 GeV (701 GeV) after analysing 19.7 fb of integrated luminosity of proton-proton collision data collected at TeV with the CMS detector.