Input (grade 11): Prior to his election in 1860, Hamlin served in the United States Senate, the House of Representatives, and, briefly, as Governor of Maine.
Output (grade 6): Hamlin served as a lawmaker in Maine, Governor of Maine, in the U.S. House of Representatives, and in the U.S. Senate.