HANOI, Vietnam (AP) — Vietnam elected Luong Cuong, a military general, as its new president on Monday, the fourth official to fill the largely ceremonial role in 18 months.

Cuong, 67, was elected by the National Assembly to replace To Lam, who remained president even after he was formally appointed as the general secretary of the ruling Communist Party in August.

The role of the general secretary is the most powerful position in Vietnam while the presidency is mostly ceremonial and involves meeting foreign dignitaries.