Relative modification of prompt psi(2S) and J/psi yields from pp to PbPb collisions at sqrt(s[NN]) = 5.02 TeV