The conservative Mr. Ahmadinejad , who won the June presidential elections , succeeds reformist President Mohammad Khatami , whose term ends Wednesday .