Input (grade 6): Jagiellonians were hereditary rulers of Lithuania and Poland.
Output (grade 5): Jagiellons were hereditary rulers of Poland and Lithuania.