Into which two groups can the nitrogenous bases that form DNA and RNA be classified? What is the cri

Into which two groups can the nitrogenous bases that form DNA and RNA be classified? What is the criterion used in that classification?