Input (grade 7): Pakistan is an active member of the United Nations.
Output (grade 12): Its alliance with the United States was especially close after the Soviets invaded the neighboring country of Afghanistan.