Input (grade 10): Thuringia borders on (from the northwest and clockwise) 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.