Input (grade 5): June 24 & ndash; Philippa of Hainault, queen of Edward III of England (d. 1369)
Output (grade 2): James II of Majorca (born 1243)