Input (grade 9): Cook named the islands the Sandwich Islands in honor of one of his sponsors, John Montagu, 4th Earl of Sandwich.
Output (grade 7): Captain Cook named the islands the Sandwich Islands for the fourth Earl of Sandwich, John Montague.