Input (grade 10): Khaba was a Pharaoh of Ancient Egypt's Old Kingdom and is generally considered to have reigned near the end of the Third Dynasty.
Output (grade 4): Khaba was a Pharaoh of the 3rd dynasty of Ancient Egypt.