Input (grade 6): Hamilton was the county town of Lanarkshire.
Output (grade 5): Hamilton is a town in South Lanarkshire, Scotland.