Input (grade 10): From the Northwest going clockwise, Thuringia borders on the German states of Lower Saxony, Saxony-Anhalt, Saxony, Bavaria and Hesse.
Output (grade 8): Thuringia borders on the German states of Lower Saxony, Saxony-Anhalt, Saxony, Bavaria and Hesse.