Nucleic acids consist of: