Input (grade 6): Beaupuy is a commune in the Gers department in southwestern France.
Output (grade 4): Beaupuy is a commune of the Gers department.