Sri Lankan lawmakers voted acting President Ranil Wickremesinghe as the new president on Wednesday, hoping he would pull the country out of a crippling economic and political crisis.
"Ranil Wickremesinghe has been elected as the eighth executive president under the constitution," the secretary general of parliament said after counting finished.
The win for Wickremesinghe, opposed by many ordinary Sri Lankans, could lead to more demonstrations by people furious with the ruling elite after months of severe shortages of fuel, food and medicines, several protesters have said.
The other main candidate, ruling party lawmaker Dullas Alahapperuma, was more acceptable to the protesters and the opposition but did not have any top-level governance experience in a country with barely any dollars for imports and desperately in need of an IMF bailout.
The 225-member parliament gave 134 votes to Wickremesinghe and 82 to Alahapperuma. A third candidate, Anura Kumara Dissanayaka, got just three votes.

Hong Kong court finds tycoon Jimmy Lai guilty in landmark security trial
Ukraine peace talks stretch into second day at start of pivotal week for Europe
Flash floods kill at least 37 people in Morocco's Safi province
'Hero' who disarmed Bondi gunman recovering after surgery, family says
School bus accident in Colombia kills 17, injures 20
Australia plans tougher gun laws after father and son kill 15 at Bondi Beach
Police to release man detained over Brown University mass shooting
Shooting at Australia's Bondi Beach kills 12
