Input (grade 13): Pegnitz is a town in the Bayreuth district in Upper Franconia, Bavaria, Germany, with a population of approximately 15,000 inhabitants.
Output (grade 10): Pegnitz is a town in the Bayreuth district in Upper Franconia, Bavaria, Germany, with a population of about 15,000.