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 a master's degrees in both law and history.