Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
List of Prime Ministers of Somalia
Table title:
List
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Name </th><th colspan=1 rowspan=1 > Portrait </th><th colspan=1 rowspan=1 > Birth–Death </th><th colspan=1 rowspan=1 > Election </th><th colspan=1 rowspan=1 > Took office </th><th colspan=1 rowspan=1 > Left office </th><th colspan=1 rowspan=1 > Political party </th></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > 1 </th><td class="highlighted"  colspan=1 rowspan=1 > Abdullahi Issa </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1921–1988 </td><td colspan=1 rowspan=1 > 1956 1959 </td><td colspan=1 rowspan=1 > 29 February 1956 </td><td colspan=1 rowspan=1 > 1 July 1960 </td><td colspan=1 rowspan=1 > SYL </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > 2 </th><td colspan=1 rowspan=1 > Muhammad Haji Ibrahim Egal </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1928–2002 </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 1 July 1960 </td><td colspan=1 rowspan=1 > 12 July 1960 </td><td colspan=1 rowspan=1 > SYL </td></tr>
<tr> <th colspan=1 rowspan=1 > 3 </th><td class="highlighted"  colspan=1 rowspan=1 > Abdirashid Shermarke </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1919–1969 </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 12 July 1960 </td><td colspan=1 rowspan=1 > 14 June 1964 </td><td colspan=1 rowspan=1 > SYL </td></tr>
<tr> <th colspan=1 rowspan=1 > 4 </th><td colspan=1 rowspan=1 > Abdirizak Haji Hussein </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1924–2014 </td><td colspan=1 rowspan=1 > 1964 </td><td colspan=1 rowspan=1 > 14 June 1964 </td><td colspan=1 rowspan=1 > 15 July 1967 </td><td colspan=1 rowspan=1 > SYL </td></tr>
<tr> <th colspan=1 rowspan=1 > (2) </th><td colspan=1 rowspan=1 > Muhammad Haji Ibrahim Egal </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1928–2002 </td><td colspan=1 rowspan=1 > 1969 </td><td colspan=1 rowspan=1 > 15 July 1967 </td><td colspan=1 rowspan=1 > 21 October 1969 (Deposed) </td><td colspan=1 rowspan=1 > SYL </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <td colspan=8 rowspan=1 > Post Abolished (21 October 1969–1 February 1987) </td></tr>
<tr> <th colspan=1 rowspan=1 > 5 </th><td colspan=1 rowspan=1 > Mohammad Ali Samatar </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1931–2016 </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 1 February 1987 </td><td colspan=1 rowspan=1 > 3 September 1990 </td><td colspan=1 rowspan=1 > SRSP </td></tr>
<tr> <th colspan=1 rowspan=1 > 6 </th><td colspan=1 rowspan=1 > Hawadle Madar </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1939–2005 </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 3 September 1990 </td><td colspan=1 rowspan=1 > 24 January 1991 (Deposed) </td><td colspan=1 rowspan=1 > SRSP </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > 7 </th><td colspan=1 rowspan=1 > Umar Ghalib </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1930– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 24 January 1991 </td><td colspan=1 rowspan=1 > May 1993 (De facto to 3 January 1997) </td><td colspan=1 rowspan=1 > USC </td></tr>
<tr> <td colspan=8 rowspan=1 > Vacant (May 1993–8 October 2000) </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > 8 </th><td colspan=1 rowspan=1 > Ali Khalif Galaydh </td><td colspan=1 rowspan=1 > Dr. Ali Khalif Galaydh Photo.JPG </td><td colspan=1 rowspan=1 > 1941– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 8 October 2000 </td><td colspan=1 rowspan=1 > 28 October 2001 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > — </th><td colspan=1 rowspan=1 > Osman Jama Ali Acting Prime Minister </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1941– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 28 October 2001 </td><td colspan=1 rowspan=1 > 12 November 2001 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 9 </th><td colspan=1 rowspan=1 > Hassan Abshir Farah </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1945– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 12 November 2001 </td><td colspan=1 rowspan=1 > 8 December 2003 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 10 </th><td colspan=1 rowspan=1 > Muhammad Abdi Yusuf </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1941– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 8 December 2003 </td><td colspan=1 rowspan=1 > 23 December 2004 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > 11 </th><td colspan=1 rowspan=1 > Ali Gedi </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1952– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 23 December 2004 </td><td colspan=1 rowspan=1 > 30 October 2007 (Resigned) </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > — </th><td colspan=1 rowspan=1 > Salim Ibrow Acting Prime Minister </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1942– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 30 October 2007 </td><td colspan=1 rowspan=1 > 24 November 2007 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 12 </th><td colspan=1 rowspan=1 > Nur Hassan Hussein </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1937– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 24 November 2007 </td><td colspan=1 rowspan=1 > 14 February 2009 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 13 </th><td colspan=1 rowspan=1 > Omar Sharmarke </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1960– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 14 February 2009 </td><td colspan=1 rowspan=1 > 24 September 2010 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > — </th><td colspan=1 rowspan=1 > Abdiwahid Gonjeh Acting Prime Minister </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1962– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 24 September 2010 </td><td colspan=1 rowspan=1 > 1 November 2010 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 14 </th><td colspan=1 rowspan=1 > Mohamed Abdullahi Farmajo </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1962– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 1 November 2010 </td><td colspan=1 rowspan=1 > 19 June 2011 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 15 </th><td colspan=1 rowspan=1 > Abdiweli Gaas </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1965– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 19 June 2011 </td><td colspan=1 rowspan=1 > 20 August 2012 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <td colspan=8 rowspan=1 > - </td></tr>
<tr> <th colspan=1 rowspan=1 > (15) </th><td colspan=1 rowspan=1 > Abdiweli Gaas Acting Prime Minister </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1965– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 20 August 2012 </td><td colspan=1 rowspan=1 > 17 October 2012 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 16 </th><td colspan=1 rowspan=1 > Abdi Shirdon </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1958– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 17 October 2012 </td><td colspan=1 rowspan=1 > 21 December 2013 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 17 </th><td colspan=1 rowspan=1 > Abdiweli Sheikh Ahmed </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1959– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 21 December 2013 </td><td colspan=1 rowspan=1 > 24 December 2014 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > (13) </th><td colspan=1 rowspan=1 > Omar Sharmarke </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1960– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 24 December 2014 </td><td colspan=1 rowspan=1 > 1 March 2017 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <th colspan=1 rowspan=1 > 18 </th><td colspan=1 rowspan=1 > Hassan Ali Khayre </td><td colspan=1 rowspan=1 > - </td><td colspan=1 rowspan=1 > 1968– </td><td colspan=1 rowspan=1 > — </td><td colspan=1 rowspan=1 > 1 March 2017 </td><td colspan=1 rowspan=1 > Incumbent </td><td colspan=1 rowspan=1 > Independent </td></tr>
</table>
Question:
Who were the first and third Prime Ministers of Somalia?
Answer:
Abdullahi Issa and Abdirashid Shermarke were the first and third Prime Ministers of Somalia.