Kathmandu, June 6 (IANS): Nepali Congress President Sher Bahadur Deuba was on Tuesday elected the new Prime Minister of Nepal -- returning to the post 12 years after he was removed from the post by then King Gyanendra. Immediately after his election, he said his priorities would be holding the local elections and the constitution’s implementation. On foreign policy, he said he will maintain good relations with both India and China. He had, while presenting his candidacy, said he will honestly work for implementation of the new constitution, and will brace his political acumen to address the grievances of the Madhesis and other outstanding political issues. Seventy-year-old Deuba, who was elected for his fourth stint as Premier exactly a week short of his 71st birthday, received wide political support during the voting in parliament. Of the total 593 voters, 388 voted in his favour as opposed to 170 votes against -- the main opposition Communist Party of Nepal (Unified Marxists-Leninists), as expected, cast their votes against him. Two Madhes-based political parties also extended their support after reaching an agreement with him and outgoing PM Pushpa Kamal Dahal ‘Prachanda’, but ruled out joining the government. Deuba’s victory was a foregone conclusion as none of the political parties fielded a candidate against him. On May 24, then Prime Minister Prachanda had announced his resignation, in keeping with his agreement with the Nepali Congress, which had propped up his coalition government since last August. The two parties had agreed that their respective leaders would lead the government on a rotational basis where Prachanda would take the first nine months and the remaining nine would be of Deuba. Deuba faces a huge domestic political challenge but foreign policy is more settled as his predecessor had almost brought relations with India and China almost back on track.