Symmetry rule for predicting molecular structures