Input (grade 13): The island of Ireland was historically divided into 32 counties, of which 26 later formed the Republic of Ireland and 6 made up Northern Ireland.
Output (grade 6): 26 of these later formed the Republic of Ireland and 6 formed Northern Ireland.