Search for Z gamma resonances using leptonic and hadronic final states in proton-proton collisions at root s=13 TeV