He said that if Iran 's nuclear program were taken up by the Security Council instead of the atomic energy agency , then '' Iran should not be expected to continue its cooperation with the I.A.E.A . '' President Mahmoud Ahmadinejad said yesterday that international treaties became '' invalid '' as soon as they failed to secure the rights of nations .