Input (grade 13): There are currently 189 countries party to the treaty, five of which have nuclear weapons: the United States, the United Kingdom, France, Russia, and the People's Republic of China (the permanent members of the UN Security Council).
Output (grade 7): The five nuclear weapons states are China, France, the United Kingdom, the United States, and Russia.