Abstract: The cross sections for ?(1S), ?(2S), and ?(3S) production in lead?lead (PbPb) and proton?proton (pp) collisions at ?sNN=5.02 TeV have been measured using the CMS detector at the LHC. The nuclear modification factors, RAA, derived from the PbPb-to-pp ratio of yields for each state, are studied as functions of meson rapidity and transverse momentum, as well as PbPb collision centrality. The yields of all three states are found to be significantly suppressed, and compatible with a sequential ordering of the suppression, RAA(?(1S))>RAA(?(2S))>RAA(?(3S)). The suppression of ?(1S) is larger than that seen at ?sNN=2.76TeV, although the two are compatible within uncertainties. The upper limit on the RAA of ?(3S) integrated over pT, rapidity and centrality is 0.096 at 95% confidence level, which is the strongest suppression observed for a quarkonium state in heavy ion collisions to date.