Input (grade 8): In 1242, Minsk became a part of the Grand Duchy of Lithuania, and it received its town privileges in 1499.
Output (grade 7): In 1326 Minsk became a part of the Grand Duchy of Lithuania and received its town privileges in 1499.