Input (grade 6): Valka is a town in northern Latvia, on the border with Estonia.
Output (grade 2): Valka is a town in Latvia with town rights since 1584.