Input (grade 10): He was born in Qubadyan, a village in middle-age Bactria in modern Tajikistan and died in Yamagan, a village in Badakhshan province of Afghanistan.
Output (grade 5): He died in Yamagan, a village in Afghanistan.