RIO DE JANEIRO, Nov. 27 (Xinhua) -- Brazilian President Michel Temer on Monday was discharged from the Sirio-Libanes hospital in Sao Paulo after heart surgery.

Temer entered the hospital on Friday and received an operation called an angioplasty to remove obstructions in three coronary arteries and to place a stent in two of these. A stent is a soft metallic tube that stops arteries from clogging up again.

According to doctors, the surgery lasted around 90 minutes, and was necessary to ensure that Temer, Brazil's oldest ever president at 77, can continue to enjoy a good quality of life.

Posting on Twitter after his release, Temer thanked the doctors for their help and Brazilian people for their support.

"I thank the medical team for their attention and the care of those who helped and prayed for me. I will soon return to work," the president said on his Twitter.