The Iranian president welcomes an encouraging signal in nuclear talks with the US, but says Tehran is ready for any potential scenario.