Input (grade 8): Aberdeen Grammar School, known to students as The Grammar or AGS, is a state secondary school in the City of Aberdeen, Scotland.
Output (grade 9): Aberdeen Grammar School is one of the twelve secondary schools run by the government in the City of Aberdeen, Scotland.