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.
'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.
Ahmad Alamolhoda (also Alam Olhoda or Alam al-Hoda) (Persian: احمد علم الهدی‎ ‎ ) is an Iranian Shia Islamic cleric who has been described as "senior" and "conservative" and "hardline."
 His rank has been given both as Hojjatoleslam and Ayatollah.
 He is the Friday Prayer leader in Mashhad, Iran and is also that city's representative in the Iranian Assembly of Experts.
 Alamolhoda is a member of Combatant Clergy Association.
Seyyed Ebrahim Raisos-Sadati (Persian: سید ابراهیم رئیس‌الساداتی‎ ‎ ; born 14 December 1960), commonly known as Ebrahim Raisi (Persian: ابراهیم رئیسی‎ ‎ , ), is an Iranian cleric and the current custodian and chairman of Astan Quds Razavi (a wealthy and powerful foundation or bonyad).
 He served in several positions in Iran's Judicial system, such as Attorney General from 2014 to 2016, and Deputy Chief Justice from 2004 to 2014.
 He was also Prosecutor and Deputy Prosecutor of Tehran in the 1980s and 1990s.
 He is also a member of Assembly of Experts from South Khorasan Province, being elected for the first time in 2006 election.
 He is the son-in-law of Mashhad Friday prayer leader and Grand Imam of Imam Reza shrine, Ahmad Alamolhoda.
Jumu'ah (Arabic: صلاة الجمعة‎ ‎ , "ṣalāt al-jum‘ah", "Friday prayer"; Persian: نماز جمعه‎ ‎ , "Namaz jumah"; Turkish: "Cuma Namazı" ), is a congregational prayer ("ṣalāt") that Muslims hold every Friday, just after noon instead of the Zuhr prayer.
 Muslims pray ordinarily five times each day according to the sun's sky path regardless of time zones.
Ayatollah Ahmad Jannati (Persian: احمد جنتی‎ ‎ , born 23 February 1927) is an Iranian Shi'i cleric and a conservative politician.
 He is also a founding member of the Haghani school of thought and a temporary Friday prayer imam of Tehran.
 Today, Jannati occupies two prominent posts in Iranian politics as chairman of the Assembly of Experts, the body charged with choosing the Supreme Leader, and as chairman of the Guardian Council, the body in charge of checking legislation approved by Majlis with the Constitution and "sharia", and approving the candidates in various elections.
Ayatollah Mohammed Emami-Kashani (born in Bid Aabaad, Isfahan, in 1931) is a member of the Assembly of Experts of the Islamic Republic of Iran.
 He has been the Interim Friday Prayer Leader of Tehran.
Ayatollah Ahmad Khatami (Persian: احمد خاتمی‎ ‎ , born 8 May 1960) is a senior Iranian cleric, as well as a senior member of the Assembly of Experts.
 In December 2005, Ali Khamenei appointed him as Tehran’s substitute Friday prayer leader.
Kazem Seddiqi (Persian: کاظم صدیقی‎ ‎ , born 4 March 1951, sometimes with the honorific Hojatoleslam, or Hujjat al-Islam, "authority of Islam", and surname anglicised as Sedighi) is an Iranian scholar and Mujtahid currently serving as Tehran's Friday Prayer Temporary Imam.
 A rival of President Ahmadinejad, Seddiqi was appointed as interim Friday prayers leader for Tehran by Ayatollah Khamenei in August 2009.
 "The New York Times" characterized the appointment as part of an effort to "reinforce [Khamenei's] authority by cultivating divisions between factions" following the controversial June presidential election.
This list of Tehran's Friday Prayer Imams after 1979 Iranian Revolution contains both permanent and temporary ones.
 The current Imam is Supreme Leader of Iran Sayyid Ali Khamenei who appoints temporary Imams as well.
 Mohammad Emami Kashani, Ahmad Jannati, Ahmad Khatami, Kazem Seddiqi and Ali Movahedi-Kermani are currently Tehran's temporary Imams.

Question: The person who appointed Ahmad Khatami as Tehran’s substitute Friday prayer leader was born in what year?
Answer: 1939