thanks to the longevity of clay , more than a handful of these ancient tablets have survived to our times , and theysurprisinglyshow that as writing first took root , the mesopotamians already had a keen grasp of mathematics , astronomy , and chemistry , and of symptoms to identify common diseases .