Question: Who was the first president of the country containing Hemed?

full_context: Document 1: Djibouti: Djibouti ( (listen) jih-BOO-tee; Afar: Yibuuti, Arabic: جيبوتي‎ Jībūtī, French: Djibouti, Somali: Jabuuti, officially the Republic of Djibouti) is a country located in the Horn of Africa. It is bordered by Eritrea in the north, Ethiopia in the west and south, and Somalia in the southeast. The remainder of the border is formed by the Red Sea and the Gulf of Aden at the east. Djibouti occupies a total area of 23,200 km2 (8,958 sq mi). The state of Djibouti is predominantly inhabited by two ethnic groups, the Somali and the Afar people, the Somalis being the major ethnic group of the country.
Document 2: Republic of the Congo: Following the revision of the French constitution that established the Fifth Republic in 1958, the AEF dissolved into its constituent parts, each of which became an autonomous colony within the French Community. During these reforms, Middle Congo became known as the Republic of the Congo in 1958 and published its first constitution in 1959. Antagonism between the pro-Opangault Mbochis and the pro-Youlou Balalis resulted in a series of riots in Brazzaville in February 1959, which the French Army subdued.
Document 3: Somalis: A referendum was held in neighboring Djibouti (then known as French Somaliland) in 1958, on the eve of Somalia's independence in 1960, to decide whether or not to join the Somali Republic or to remain with France. The referendum turned out in favour of a continued association with France, largely due to a combined yes vote by the sizable Afar ethnic group and resident Europeans. There was also widespread vote rigging, with the French expelling thousands of Somalis before the referendum reached the polls. The majority of those who voted no were Somalis who were strongly in favour of joining a united Somalia, as had been proposed by Mahmoud Harbi, Vice President of the Government Council. Harbi was killed in a plane crash two years later. Djibouti finally gained its independence from France in 1977, and Hassan Gouled Aptidon, a Somali who had campaigned for a yes vote in the referendum of 1958, eventually wound up as Djibouti's first president (1977–1991).
Document 4: Medeho: Medeho () is a town in the northeastern Obock Region of Djibouti. Medeho has one of the mildest climates in Djibouti, which is not always passable during the rainy season. The town is overlooked by Mabla Mountains, the fifth tallest mountain in Djibouti. As of 2016, the population of Medeho has been estimated to be 4,000.
Document 5: Palermo: Palermo is surrounded by mountains, formed of calcar, which form a cirque around the city. Some districts of the city are divided by the mountains themselves. Historically, it was relatively difficult to reach the inner part of Sicily from the city because of the mounts. The tallest peak of the range is La Pizzuta, about 1,333 m (4,373 ft.) high. However, historically, the most important mount is Monte Pellegrino, which is geographically separated from the rest of the range by a plain. The mount lies right in front of the Tyrrhenian Sea. Monte Pellegrino's cliff was described in the 19th century by Johann Wolfgang von Goethe, as "The most beautiful promontory in the world", in his essay "Italian Journey".
Document 6: Eritrea: In the 1950s, the Ethiopian feudal administration under Emperor Haile Selassie sought to annex Eritrea and Italian Somaliland. He laid claim to both territories in a letter to Franklin D. Roosevelt at the Paris Peace Conference and at the First Session of the United Nations. In the United Nations, the debate over the fate of the former Italian colonies continued. The British and Americans preferred to cede all of Eritrea except the Western province to the Ethiopians as a reward for their support during World War II. The Independence Bloc of Eritrean parties consistently requested from the UN General Assembly that a referendum be held immediately to settle the Eritrean question of sovereignty.
Document 7: Garbi (mountain): Garbi is a mountain in the western part of the Tadjourah Region in Djibouti. It is located about east of Djibouti City. With a mean height of 1680 metres (5,512 ft), is the third highest point in Djibouti.
Document 8: Damerjog: Damerjog or Damerdjog () is a small village located in eastern Djibouti, populated by farmers and gardeners, located in the Arta Region, 16 km southeast of the capital Djibouti, north of the border with Somalia.
Document 9: Somalis: Somali people in the Horn of Africa are divided among different countries (Somalia, Djibouti, Ethiopia, and northeastern Kenya) that were artificially and some might say arbitrarily partitioned by the former imperial powers. Pan-Somalism is an ideology that advocates the unification of all ethnic Somalis once part of Somali empires such as the Ajuran Empire, the Adal Sultanate, the Gobroon Dynasty and the Dervish State under one flag and one nation. The Siad Barre regime actively promoted Pan-Somalism, which eventually led to the Ogaden War between Somalia on one side, and Ethiopia, Cuba and the Soviet Union on the other.
Document 10: Mount Fedallah: Mount Fedallah () is a mountain approximately high, situated east of the Pip Cliffs, on the north side of Flask Glacier, in the south-east foothills of Madrid Dome in Aristotle Mountains, eastern Graham Land Antarctica. It was named by the UK Antarctic Place-Names Committee in 1987, after a crewman of the "Pequod" in association with other names from "Moby-Dick" in this area.
Document 11: Central African Republic: By 1990, inspired by the fall of the Berlin Wall, a pro-democracy movement arose. Pressure from the United States, France, and from a group of locally represented countries and agencies called GIBAFOR (France, the USA, Germany, Japan, the EU, the World Bank, and the UN) finally led Kolingba to agree, in principle, to hold free elections in October 1992 with help from the UN Office of Electoral Affairs. After using the excuse of alleged irregularities to suspend the results of the elections as a pretext for holding on to power, President Kolingba came under intense pressure from GIBAFOR to establish a "Conseil National Politique Provisoire de la République" (Provisional National Political Council, CNPPR) and to set up a "Mixed Electoral Commission", which included representatives from all political parties.[citation needed]
Document 12: Somalis: British Somaliland became independent on 26 June 1960 as the State of Somaliland, and the Trust Territory of Somalia (the former Italian Somaliland) followed suit five days later. On 1 July 1960, the two territories united to form the Somali Republic, albeit within boundaries drawn up by Italy and Britain. A government was formed by Abdullahi Issa Mohamud and Muhammad Haji Ibrahim Egal other members of the trusteeship and protectorate governments, with Haji Bashir Ismail Yusuf as President of the Somali National Assembly, Aden Abdullah Osman Daar as the President of the Somali Republic and Abdirashid Ali Shermarke as Prime Minister (later to become President from 1967 to 1969). On 20 July 1961 and through a popular referendum, the people of Somalia ratified a new constitution, which was first drafted in 1960. In 1967, Muhammad Haji Ibrahim Egal became Prime Minister, a position to which he was appointed by Shermarke. Egal would later become the President of the autonomous Somaliland region in northwestern Somalia.
Document 13: Najd: Najd is a plateau ranging from 762 to 1,525 m (2,500 to 5,003 ft) in height and sloping downwards from west to east. The eastern sections (historically better known as Al-Yamama) are marked by oasis settlements with lots of farming and trading activities, while the rest has traditionally been sparsely occupied by nomadic Bedouins. The main topographical features include the twin mountains of Aja and Salma in the north near Ha'il, the high land of Jabal Shammar and the Tuwaiq mountain range running through its center from north to south. Also important are the various dry river-beds (wadis) such as Wadi Hanifa near Riyadh, Wadi Na'am in the south, Wadi Al-Rumah in the Al-Qassim Province in the north, and Wadi ad-Dawasir at the southernmost tip of Najd on the border with Najran. Most Najdi villages and settlements are located along these wadis, due to ability of these wadis to preserve precious rainwater in the arid desert climate, while others are located near oases. Historically, Najd itself has been divided into small provinces made up of constellations of small towns, villages and settlements, with each one usually centered on one "capital". These subdivisions are still recognized by Najdis today, as each province retains its own variation of the Najdi dialect and Najdi customs. The most prominent among these provinces are Al-'Aridh, which includes Riyadh and the historical Saudi capital of Diriyah; Al-Qassim, with its capital in Buraidah; Sudair, centered on Al Majma'ah; Al-Washm, centered on Shaqraa; and Jebel Shammar, with its capital, Ha'il. Under modern-day Saudi Arabia, however, Najd is divided into three administrative regions: Ha'il, Al-Qassim, and Riyadh, comprising a combined area of 554,000 km2 (214,000 sq mi).
Document 14: Republic of the Congo: On March 27, 2015 Sassou Nguesso announced that his government would hold a referendum to change the country's 2002 constitution and allow him to run for a third consecutive term in office. On October 25 the government held a referendum to allow Sassou Nguesso to run in the next election. The government claimed that the proposal as approved by 92 percent of voters with 72 percent of eligible voters participating. The opposition, who had boycotted the referendum claimed that the government's statistics were false and that the vote was a sham.
Document 15: Hemed (mountain): Hemed is a mountain in the western part of the Arta Region in south-central Djibouti. It is located about east of the capital Djibouti City. The summit is above sea level, is the eighth highest point in Djibouti.
ground_truth: Hassan Gouled Aptidon
sub_queries: Hemed >> country Answer: Djibouti
Who was the first president of Djibouti ? Answer: Hassan Gouled Aptidon