Input (grade 13): Bagdad is an unincorporated community in northeastern Shelby County, Kentucky, United States.
Output (grade 4): Bagdad is a city of Kentucky in the United States.