All kinds of herbs were cast into the ocean and fourteen Ratnas (gems or treasures) were produced from it and were divided between the Asuras and the Devas. Though usually the Ratnas are enumerated as 14, the list in the scriptures ranges from 9 to 14 Ratnas. According to the quality of the treasures produced, they were accepted by Shiva (because of consuming the poison), Vishnu, Maha Rishi's (for Kamadhenu or Surabhi), which was given by Vishnu, the Devas and the Asuras. There were three categories of Goddesses which emerged from the ocean; most lists include: