<Tr> <Td> </Td> <Td> Pakistan Muslim League (Q) </Td> </Tr> <Tr> <Td> </Td> <Td> Independent </Td> </Tr> <Table> List of Presidents of Pakistan <Tr> <Th> No . </Th> <Th> Portrait </Th> <Th> Name (Birth--death) </Th> <Th> Took office </Th> <Th> Left office </Th> <Th> Elections </Th> <Th_colspan="2"> Political party </Th> <Th> Note (s) </Th> </Tr> <Tr> <Td> </Td> <Td> </Td> <Th> Iskander Mirza (1899--1969) </Th> <Td> 23 March 1956 </Td> <Td> 27 October 1958 </Td> <Td>--</Td> <Td> Republican Party </Td> <Td> </Td> <Td> Mirza served as the last Governor - General of Pakistan and became its first president after the 1956 Constitution was promulgated, which established a republic . He was deposed in a 1958 coup d'état by General Ayub Khan, whom Mirza had appointed as the Chief Martial Law Administrator in 1957 . </Td> </Tr> <Tr> <Td> </Td> <Td> </Td> <Th> Ayub Khan (1907--1974) </Th> <Td> 27 October 1958 </Td> <Td> 8 June 1962 </Td> <Td>--</Td> <Td>--</Td> <Td> </Td> <Td> Ayub took control over the country after the 1958 coup d'état . He led Pakistan into the 1965 war against India . In 1969, Ayub resigned under pressure from opposition and handed over power to General Yahya Khan . </Td> </Tr> <Tr> <Td> 8 June 1962 </Td> <Td> 25 March 1969 </Td> <Td> 2 January 1965 </Td> <Td> Pakistan Muslim League (C) </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> </Td> <Th> Yahya Khan (1917--1980) </Th> <Td> 25 March 1969 </Td> <Td> 20 December 1971 </Td> <Td>--</Td> <Td>--</Td> <Td> </Td> <Td> Yahya took office after the resignation of Ayub Khan in 1969 . He resigned after Pakistan's defeat to India in the 1971 war . </Td> </Tr> <Tr> <Td> </Td> <Td> </Td> <Th> Zulfikar Ali Bhutto (1928--1979) </Th> <Td> 20 December 1971 </Td> <Td> 13 August 1973 </Td> <Td> 20 December 1971 </Td> <Td> Pakistan People's Party </Td> <Td> </Td> <Td> Bhutto resigned as president to become the Prime Minister after the 1973 Constitution was promulgated, which established a parliamentary system of government . </Td> </Tr> <Tr> <Td> 5 </Td> <Td> Muhammad Ali Khan </Td> <Th> Fazal Ilahi Chaudhry (1904--1982) </Th> <Td> 14 August 1973 </Td> <Td> 16 September 1978 </Td> <Td> 14 August 1973 </Td> <Td> Pakistan People's Party </Td> <Td> </Td> <Td> Chaudhry was the constitutional president, whose authority was exercised by Prime Minister Zulfikar Ali Bhutto . Chaudhry resigned in 1978 and handed over the presidency to General Zia . </Td> </Tr> <Tr> <Td> 6 </Td> <Td> </Td> <Th> Muhammad Zia - ul - Haq (1924--1988) </Th> <Td> 16 September 1978 </Td> <Td> 17 August 1988 </Td> <Td>--</Td> <Td>--</Td> <Td> </Td> <Td> Zia took de facto control over the country by leading the 1977 coup d'état . He served as the Chief Martial Law Administrator until 1979 . He was killed in a plane crash, becoming the only president to die in office . </Td> </Tr> <Tr> <Td> 7 </Td> <Td> </Td> <Th> Ghulam Ishaq Khan (1915--2006) </Th> <Td> 17 August 1988 </Td> <Td> 18 July 1993 </Td> <Td> 13 December 1988 </Td> <Td> Independent </Td> <Td> </Td> <Td> Khan took office after the Zia's 1988 death . He attempted to dismiss the Nawaz Sharif government in 1993, but the Supreme Court overturned the president's decision . Khan eventually resigned, along with Sharif, in an agreement brokered by the Armed Forces . </Td> </Tr> <Tr> <Td> 1A </Td> <Td> </Td> <Th> Wasim Sajjad (1941--) </Th> <Td> 18 July 1993 </Td> <Td> 14 November 1993 </Td> <Td>--</Td> <Td> Pakistan Muslim League (N) </Td> <Td> </Td> <Td> He was Chairman of the Senate, serving his first term as acting President . </Td> </Tr> <Tr> <Td> 8 </Td> <Td> </Td> <Th> Farooq Leghari (1940--2010) </Th> <Td> 14 November 1993 </Td> <Td> 2 December 1997 </Td> <Td> 14 November 1993 </Td> <Td> Pakistan People's Party </Td> <Td> </Td> <Td> Leghari was elected president in 1993, after the resignation of Ghulam Ishaq Khan . Afterwards, Leghari clashed with Prime Minister Nawaz Sharif, and he finally resigned after being forced by the conservatives and persuaded by the Armed Forces . </Td> </Tr> <Tr> <Td> 2A </Td> <Td> </Td> <Th> Wasim Sajjad (1941--) </Th> <Td> 2 December 1997 </Td> <Td> 1 January 1998 </Td> <Td>--</Td> <Td> Pakistan Muslim League (N) </Td> <Td> </Td> <Td> He was Chairman of the Senate, serving his second term as acting President . </Td> </Tr> <Tr> <Td> 9 </Td> <Td> </Td> <Th> Muhammad Rafiq Tarar (1929--) </Th> <Td> 1 January 1998 </Td> <Td> 20 June 2001 </Td> <Td> 31 December 1997 </Td> <Td> Pakistan Muslim League (N) </Td> <Td> </Td> <Td> Tarar was the constitutional president, whose authority was exercised by Prime Minister Nawaz Sharif . Tarar resigned in 2001 . </Td> </Tr> <Tr> <Td> 10 </Td> <Td> </Td> <Th> Pervez Musharraf (1943--) </Th> <Td> 20 June 2001 </Td> <Td> 6 October 2007 </Td> <Td> 1 January 2004 </Td> <Td>--</Td> <Td> </Td> <Td> Musharraf took de facto control over the country by leading the 1999 Pakistani coup d'état . He served as the Chief Executive until 2002 . Musharraf resigned the presidency in 2008, to avoid impeachment . </Td> </Tr> <Tr> <Td> 6 October 2007 </Td> <Td> 18 August 2008 </Td> <Td> 6 October 2007 </Td> <Td> Pakistan Muslim League (Q) </Td> <Td> </Td> </Tr> <Tr> <Td> 3A </Td> <Td> </Td> <Th> Muhammad Mian Soomro (1950--) </Th> <Td> 18 August 2008 </Td> <Td> 9 September 2008 </Td> <Td>--</Td> <Td> Pakistan Muslim League (Q) </Td> <Td> </Td> <Td> He was Chairman of the Senate, serving as acting President . </Td> </Tr> <Tr> <Td> 11 </Td> <Td> </Td> <Th> Asif Ali Zardari (1955--) </Th> <Td> 9 September 2008 </Td> <Td> 9 September 2013 </Td> <Td> 6 September 2008 </Td> <Td> Pakistan People's Party </Td> <Td> </Td> <Td> Zardari was elected after Musharraf's resignation in 2008 . The passage of the 18th Amendment in 2010 reduced his vast presidential powers to that of a ceremonial figurehead . </Td> </Tr> <Tr> <Td> 12 </Td> <Td> </Td> <Th> Mamnoon Hussain (1940--) </Th> <Td> 9 September 2013 </Td> <Td> Incumbent </Td> <Td> 30 July 2013 </Td> <Td> Pakistan Muslim League (N) </Td> <Td> </Td> <Td> Hussain was elected the 12th President of Pakistan by a comfortable majority, and took office on 9 September 2013 . </Td> </Tr> </Table> <Tr> <Th> No . </Th> <Th> Portrait </Th> <Th> Name (Birth--death) </Th> <Th> Took office </Th> <Th> Left office </Th> <Th> Elections </Th> <Th_colspan="2"> Political party </Th> <Th> Note (s) </Th> </Tr>

Who is the longest serving president of pakistan
find me the text answering this question