Input (grade 13): The state shares the Red River of the North with Minnesota on the east; South Dakota is to the south, Montana is to the west, and the Canadian provinces of Saskatchewan and Manitoba are north.
Output (grade 8): North Dakota is south of Manitoba and Saskatchewan, east of Montana, north of South Dakota, and west of Minnesota.