Input (grade 12): He graduated from Adam Mickiewicz University in Pozna with master's degrees in both law and history.
Output (grade 11): He graduated from Adam Mickiewicz University in Pozna with an masters degrees in both law and history.