Putin and Ahmadinejad discuss Mideast crises