Task: Text Categorization
Input (English): 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 (English): Social Science