Input (grade 12): South Dakota is bordered to the north by North Dakota; to the south by Nebraska; to the east by Iowa and Minnesota; and to the west by Wyoming and Montana.
Output (grade 12): South Dakota is bordered to the north by North Dakota, to the south by Nebraska, to the east by Iowa and Minnesota, and to the west by Wyoming and Montana.