Measurement of the ratio B(Bc± → J/ψπ±π±π∓ )/B(Bc± → J/ψπ± ) and the production cross sections times branching fractions of Bc± → J/ψπ± and B± → J/ψK± in CMS