Input (grade 5): Panama is a city in Shelby County, Iowa, United States.
Output (grade 2): Panama is a city of Iowa in the United States.