You will be given a definition of a task first, then some input of the task.
In this task you will be given a text passage from a trivia quiz. You should choose the category this question belongs to from these categories: History, Science, Social Science, Fine Arts, Literature. You can only choose one category, so if in doubt, please choose the closest match.

This god was sometimes required to appear in Duat, where he achieved his most important task. Some myths attribute the birth of Khepri to this god, who was believed to intervene on both sides of mortal battle so that neither side could attain true victory. He sometimes attained the aspect of A'an, which required him to don a baboon's head, and this god is responsible for mediating the conflict between Heru-Bektet and Set, as well as between Ra and Apep. The masculine counterpart to Seshat, this god notably bet with Khonsu and won part of the moon's light, and during the process of judging for the afterlife, this god weighed the hearts of mortals against the feather of truth, or Ma'at. For ten points, identify this Egyptian god, who invented writing and had the head of an ibis.
Output:
Social Science