Question: What president was assassinated in an explosion on August 1981, and was succeeded by a man elected as the new Supreme Leader by the Assembly of Experts on 4 June 1989 at the age of 49?

full_context: Document 1: Ruhollah Khomeini: Sayyid Ruhollah Mūsavi Khomeini (Persian: سید روح‌الله موسوی خمینی‎ ‎ ] ; 24 September 1902 – 3 June 1989), known in the Western world as Ayatollah Khomeini, was an Iranian Shia Muslim religious leader, philosopher, revolutionary, and politician. He was the founder of the Islamic Republic of Iran and the leader of the 1979 Iranian Revolution that saw the overthrow of the 2500 years of Persian monarchy and Mohammad Reza Pahlavi, the last Shah of Iran. Following the revolution, Khomeini became the country's Supreme Leader, a position created in the constitution of the Islamic Republic as the highest-ranking political and religious authority of the nation, which he held until his death. He was succeeded by Ali Khamenei on 4 June 1989.
Document 2: President of Iran: The President of Iran (Persian: رییس‌جمهور ایران "Rayis Jomhur-e Irān") is the head of government of the Islamic Republic of Iran. The President is the highest popularly elected official in Iran (however, the president is still required to gain the Leader’s official approval before being sworn in before the Parliament, and the Leader also has the power to dismiss the elected president anytime). The President carries out the decrees, and answers to the Supreme Leader of Iran, who functions as the country's head of state. Unlike the executive in other countries, the President of Iran does not have full control over anything, as these are ultimately under the control of the Supreme Leader. Chapter IX of the Constitution of the Islamic Republic of Iran sets forth the qualifications for presidential candidates. The procedures for presidential election and all other elections in Iran are outlined by the Supreme Leader. The President functions as the executive of the decrees and wishes of the Supreme Leader. These include signing treaties and other agreements with foreign countries and international organizations, with Supreme Leader's approval; administering national planning, budget, and state employment affairs, as decreed by the Supreme Leader. The President also appoints the ministers, subject to the approval of Parliament, and the Supreme Leader who can dismiss or reinstate any of the ministers at any time, regardless of the president or parliament's decision. Iran’s regional policy is directly controlled by the office of the Supreme Leader with the Ministry of Foreign Affairs’ task limited to protocol and ceremonial occasions. All of Iran’s ambassadors to Arab countries, for example, are chosen by the Quds Corps, which directly reports to the Supreme Leader.
Document 3: Sultan Ali: 'Ali ibn Muhammad ibn 'Ali ibn al-Husayn was the son of the fifth imam of Twelver Shii Muslims and fourth imam of Ismaili Shii Muslims, Muhammad al-Baqir. Born in Medina, 'Ali, known in Iran as "Sultan 'Ali," was dispatched by his father to the areas of Kashan and Qom, where he served as a Friday prayer leader and teacher; his popularity and his preaching of Shii Islam proved threatening to the local representative of the Umayyad dynasty. The Umayyad representative's forces cornered and killed Sultan 'Ali and a band of his supporters, after a prolonged battle, and before a larger group of supporters could arrive, in Ardahal, a village roughly 45 kilometers east of Kashan on August 7, 734 CE (27 Jamadi II, 116 AH). He is still revered by Shii Muslims, especially in Iran, where his burial place—which has undergone repeated renovations but dates, in part, to the Saljuq period—has become a site of visitation. The shrine is known for a distinctive annual carpet-washing ritual ("qālī-shūyān") that occurs on the seventeenth day of autumn to commemorate the day of Sultan 'Ali's martyrdom, a ritual that might have its origins in Sultan 'Ali's body having been wrapped in a carpet and brought to the site of his burial after his murder.
Document 4: Supreme Leader of Iran: The Supreme Leader of Iran (Persian: رهبر معظم ایران‎ , "rahbar-e mo'azzam-e irān " ‎ ), also called the Supreme Leader of the Islamic Revolution (رهبر معظم انقلاب اسلامی , "rahbar-e mo'azzam-e enghelāb-e eslāmi "), officially in Iran, called the Supreme Leadership Authority (مقام معظم رهبری , "maqām mo'azzam rahbari "), is the head of state and highest ranking political and religious authority in the Islamic Republic of Iran. The armed forces, judicial system, state television, and other key governmental organizations are under the control of the Supreme Leader of Iran. The current longtime Supreme Leader of Iran, Ali Khamenei, has been issuing decrees and making the final decisions on economy, environment, foreign policy, education, national planning, and everything else in Iran. Khamenei also makes the final decisions on the amount of transparency in elections in Iran, and has fired and reinstated Presidential cabinet appointments. Iran’s regional policy is directly controlled by the office of the Supreme Leader with the Ministry of Foreign Affairs’ task limited to protocol and ceremonial occasions. All of Iran’s ambassadors to Arab countries, for example, are chosen by the Quds Corps, which directly reports to the Supreme Leader.
Document 5: Ali: Ali ( ; Arabic: علي‎ , "ʿAlī " ‎ , ] ; 13 Rajab, 21 BH – 21 Ramadan, 40 AH (c. 594 – 29 January 661) was the cousin and son-in-law of Muhammad, the prophet of Islam. He ruled as the fourth caliph from 656 to 661, and was first Imam of Shia Islam from 632 to 661.
Document 6: Iranian Supreme Leader election, 1989: The Supreme Leader of Iran election, 1989 was an indirect election where the Assembly of Experts members voted to choose the second Supreme Leader of Iran. The election was held on June 4, 1989, the morning after Ruhollah Khomeini's death and Ali Khamenei was elected as his successor with 60 votes out of 74.
Document 7: Ayatollah Haj Muhammmad-Hassan Jazayeri: Ayatollah Seyyed Haj Muhammad-Hassan Jazayeri was from Khuzestan and he was a direct descendant of the Islamic prophet, Muhammad and was a descendant of Seyyed Nama'tolla Jazayeri who started the name Jazayeri 1640 (D.1700). Ayatollah Seyyed Haj Muhammad-Hassan Jazayeri was born in 1270 (1892) in the city of Qom, Iran. He started reading and studying the Quran at the age 5 as his father was a Grand Ayatollah Seyyed Mehdi. He learned several languages including Arabic and English by the age of 21. He was a teacher at a religious school called Elmia in Qom. He was a classmate of Ayatollah Khomeini when at quran school. At the age of 40, he was invited to Ahvaz to be the Supreme Religious leader of all the Imams of Khuzestan. He set the times of prayers (Aathaan) for Khuzestan. He had 5 children, 2 boys and 3 girls. He was very respected by the Shah of Iran Mohammmad Reza Pahlavi and his wife Farah Pahlavi. He led a very spiritual life and he was a very important Ayatollah in his time.
Document 8: Government of Mir-Hossein Mousavi (1985–89): In August 1981, President Mohammad-Ali Rajai and Prime Minister Mohammad-Javad Bahonar were assassinated in an explosion. Ali Khamenei was then elected as the third president of Iran in the Iranian presidential election, October 1981. He put forward Ali Akbar Velayati as his prime minister, but the Iranian parliament did not give him the vote of confidence, and he was defeated with a vote of 80 to 74. Subsequently, Ali Khamenei, though he had strong disagreements with Mousavi, as a compromise with the left-leaning parliament, agreed to offer him, Mousavi, for the post of premier. On 28 October, the parliament approved Mousavi with a vote of 115 to 39. Mousavi became the 79th Prime Minister of Iran on 31 October 1981, and remained the prime minister of Iran until 3 August 1989, for eight years.
Document 9: Mozzafar Baghai: Mozzafar Baghai (Persian: مظفر بقائی‎ ‎ ; 23 July 191218 November 1987) is known best as an Iranian political figure of the 1940s and 50s. He rose to prominence during the national struggle against British control of Iran's oil industry. For decades, most Iranians had resented the Anglo-Iranian Oil Company (51% of which was under the control of the British government) for the perceived injustice of allocating most profits to the company and the British government, while only a very small proportion was given to Iran, despite the fact that the oil fields were on Iranian territory. Baghai made himself known as a fiery critic of the British and he allied himself with those of like mind, including Dr. Mohammad Mossadegh (a man who had risen to prominence as a fierce critic of Reza Shah, the despotic ruler of Iran from 1921–1941, and of the British control of the oil fields and that country's interference in Iran's internal affairs). He was different from many other nationalists in that he held very left-wing (albeit anti-communist) views. He was able to best articulate this when he formed the Toilers Party of the Iranian Nation, a left-wing, nationalistic and anti-communist party that included such notables as Khalil Maleki (an ex-member of the Tudeh Party who broke away from that group for its dependence on the Soviet Union). In 1949, the Toilers Party joined with Mossadegh and his liberal supporters in forming the National Front of Iran, which was an umbrella organization for all Iranians who were committed to the principles of freeing Iran from foreign domination, ending arbitrary rule and establishing a government dependent on the will of the people of Iran. In April 1951, one month after the oil industry was nationalized by the Majlis, Mossadegh was chosen by that elected body as the Prime Minister of Iran, subject to approval by the reigning Mohammad Reza Shah (who had succeeded his father as Shah of Iran in Sept. 1941).
Document 10: Assembly of Experts: The Assembly of Experts (Persian: مجلس خبرگان رهبری‎ , "Majles-e Khobregān-e Rahbari " ‎ ) —also translated as the Assembly of Experts of the Leadership or as the Council of Experts— is the deliberative body empowered to designate and dismiss the Supreme Leader of Iran. However all directly-elected members after the vetting process by the Guardian Council still have to be approved by the Supreme Leader of Iran before gaining membership to the Assembly of Experts.
Document 11: Succession of Ali Khamenei: The succession of Ali Khamenei, the current Supreme Leader of Iran, has been a taboo in Iran. According to the Constitution of the Islamic Republic of Iran, the Supreme Leader is elected by two third majority of the Assembly of Experts members. however, the Assembly has not elected any deputies since the deposition of Hussein-Ali Montazeri in 1987. The Assembly elected a Supreme Leader once in the Iranian Supreme Leader election, 1989.
Document 12: Elections in Iran: Iran elects on national level a head of state and head of government (the president), a legislature (the Majlis), and an "Assembly of Experts" (which elects the Supreme Leader). Also City and Village Council elections are held every four years throughout the country. The president is elected for a four-year term by the people. The Parliament or "Islamic Consultative Assembly" ("Majlis-e Shura-ye Eslami") has 290 members, elected for a four-year term in multi- and single-seat constituencies. Elections for the Assembly of Experts are held every eight years. All candidates have to be approved by the Guardian Council. See Politics of Iran for more details.
Document 13: Mohammad-Ali Rajai: Mohammad-Ali Rajai (Persian: محمدعلی رجائی‎ ‎ ; 15 June 1933 – 30 August 1981) was the second President of Iran from 2 to 30 August 1981 after serving as prime minister under Abolhassan Banisadr. He was also minister of foreign affairs from 11 March 1981 to 15 August 1981, while he was prime minister. He was assassinated in a bombing on 30 August 1981 along with prime minister Mohammad-Javad Bahonar.
Document 14: Ali Khamenei: Sayyid Ali Hosseini Khamenei (Persian: سید علی حسینی خامنه‌ای‎ ‎ ] ; born 17 July 1939) is a "marja" and the second and current Supreme Leader of Iran. Khamenei succeeded the first Supreme Leader, Ruhollah Khomeini, after Khomeini's death, being elected as the new Supreme Leader by the Assembly of Experts on 4 June 1989 at the age of 49. His political career began after the Iranian Revolution, when the former President of Iran, Akbar Hashemi Rafsanjani, then a confidant of Khomeini, brought Khamenei into Khomeini's inner circle. Later on, the current President of Iran, Hassan Rouhani, then a member of Parliament, arranged for Khamenei to get his first major post in the provisional revolutionary government as deputy defense minister. Khamenei then went to serve as the third President of Iran from 1981 to 1989 while becoming a close ally to Khomeini. Eventually, after Khomeini had a fall off with then heir-apparent Hussein Ali Montazeri, Rafsanjani claimed that Khomeini had chosen Khamenei as his successor while the Assembly of Experts deliberated to elect the next Supreme Leader. Khamenei is head of the servants of Astan Quds Razavi from April 14, 1979.
Document 15: Shia view of Ali: Ali was the cousin and son-in-law of the Islamic prophet Muhammad, and a member of the "Ahl al-Bayt". Shias regard Ali as the first Imam and is considered, along with his descendants, to be one of the divinely appointed successors of Muhammad who are claimed by the Shia the only legitimate religious and political leaders of the Muslim community. Although Ali was regarded, during the lifetime of Muhammad, as his initial successor, it would be 25 years before he was recognized with the title of Caliph "(successor)". Like the rest of his household, Shias claim that Ali is infallible and sinless and is one of The Fourteen Infallibles of the household of Muhammed.
ground_truth: President Mohammad-Ali Rajai