Input (grade 7): is a town in Germany, the capital of the district Weilheim-Schongau in the south of Bavaria.
Output (grade 9): Weilheim is a town in the rural district Weilheim-Schongau in Upper Bavaria, Germany. It is the capital of the district Weilheim-Schongau.