Input (grade 13): In the 1494 Treaty of Tordesillas the entire world beyond Europe was split between Portugal and Castile (Spain) for conquest and dominion purposes - by two north-south lines down the Atlantic Ocean and the Near East.
Output (grade 12): By the Treaty of Tordesillas of 1494, the extra-European world was split between the crowns of Portugal and Castile by a north-south line through the Atlantic Ocean.