Rearrangement of carbon atoms in the hydrocarbon skeleton changing the number of carbon atoms in a ring while maintaining the number of rings