<Tr> <Th> Colour key for parties </Th> </Tr> <Tr> <Td> Bahujan Samaj Party Bharatiya Kranti Dal Bharatiya Janata Party Indian National Congress Janata Dal Janata Party Samajwadi Party N / A (President's rule) </Td> </Tr> <Table> <Tr> <Th> No </Th> <Th_colspan="2"> Name Constituency </Th> <Th_colspan="2"> Term of office </Th> <Th> Tenure length </Th> <Th_colspan="2"> Party </Th> <Th> Assembly (Election) </Th> <Th> Ref </Th> </Tr> <Tr> <Td> </Td> <Td> Govind Ballabh Pant Bareilly Municipality </Td> <Td> </Td> <Td> 26 January 1950 </Td> <Td> 20 May 1952 </Td> <Td> 4 years, 335 days </Td> <Td> Indian National Congress </Td> <Td> </Td> <Td> Not yet created </Td> </Tr> <Tr> <Td> 20 May 1952 </Td> <Td> 27 December 1954 </Td> <Td> First Assembly (1952--57) (1951 election) </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> Sampurnanand Varanasi South </Td> <Td> </Td> <Td> 28 December 1954 </Td> <Td> 9 April 1957 </Td> <Td> 5 years, 344 days </Td> </Tr> <Tr> <Td> 10 April 1957 </Td> <Td> 6 December 1960 </Td> <Td> Second Assembly (1957--62) (1957 election) </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> Chandra Bhanu Gupta Ranikhet South </Td> <Td> </Td> <Td> 7 December 1960 </Td> <Td> 14 March 1962 </Td> <Td> 2 years, 298 days </Td> </Tr> <Tr> <Td> 14 March 1962 </Td> <Td> 1 October 1963 </Td> <Td> Third Assembly (1962--67) (1962 election) </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> Sucheta Kriplani Mendhwal </Td> <Td> </Td> <Td> 2 October 1963 </Td> <Td> 13 March 1967 </Td> <Td> 3 years, 162 days </Td> </Tr> <Tr> <Td> (3) </Td> <Td> Chandra Bhanu Gupta (2) Ranikhet </Td> <Td> </Td> <Td> 14 March 1967 </Td> <Td> 2 April 1967 </Td> <Td> 19 days </Td> <Td> Fourth Assembly (1967--68) (1967 election) </Td> <Td> </Td> </Tr> <Tr> <Td> </Td> <Td> Charan Singh Chhaprauli </Td> <Td> </Td> <Td> 3 April 1967 </Td> <Td> 25 February 1968 </Td> <Td> 328 days </Td> <Td> Bharatiya Kranti Dal </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 25 February 1968 </Td> <Td> 26 February 1969 </Td> <Td> 1 year, 1 day </Td> <Td> N / A </Td> <Td> </Td> <Td> Dissolved </Td> </Tr> <Tr> <Td> (3) </Td> <Td> Chandra Bhanu Gupta (3) Ranikhet </Td> <Td> </Td> <Td> 26 February 1969 </Td> <Td> 17 February 1970 </Td> <Td> 356 days </Td> <Td> Indian National Congress </Td> <Td> </Td> <Td> Fifth Assembly (1969--74) (1969 election) </Td> <Td> </Td> </Tr> <Tr> <Td> (5) </Td> <Td> Charan Singh (2) Chhaprauli </Td> <Td> </Td> <Td> 18 February 1970 </Td> <Td> 1 October 1970 </Td> <Td> 225 days </Td> <Td> Bharatiya Kranti Dal </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 1 October 1970 </Td> <Td> 18 October 1970 </Td> <Td> 17 days </Td> <Td> N / A </Td> <Td> </Td> </Tr> <Tr> <Td> 6 </Td> <Td> Tribhuvana Narayana Singh </Td> <Td> </Td> <Td> 18 October 1970 </Td> <Td> 3 April 1971 </Td> <Td> 167 days </Td> <Td> Indian National Congress </Td> <Td> </Td> </Tr> <Tr> <Td> 7 </Td> <Td> Kamlapati Tripathi Chandauli </Td> <Td> </Td> <Td> 4 April 1971 </Td> <Td> 12 June 1973 </Td> <Td> 2 years, 69 days </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 13 June 1973 </Td> <Td> 8 November 1973 </Td> <Td> 148 days </Td> <Td> N / A </Td> <Td> </Td> </Tr> <Tr> <Td> 8 </Td> <Td> Hemwati Nandan Bahuguna Bara </Td> <Td> </Td> <Td> 8 November 1973 </Td> <Td> 4 March 1974 </Td> <Td> 2 years, 21 days </Td> <Td> Indian National Congress </Td> <Td> </Td> </Tr> <Tr> <Td> 5 March 1974 </Td> <Td> 29 November 1975 </Td> <Td> Sixth Assembly (1974--77) (1974 election) </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 30 November 1975 </Td> <Td> 21 January 1976 </Td> <Td> 52 days </Td> <Td> N / A </Td> <Td> </Td> </Tr> <Tr> <Td> 9 </Td> <Td> N.D. Tiwari Kashipur </Td> <Td> </Td> <Td> 21 January 1976 </Td> <Td> 30 April 1977 </Td> <Td> 1 year, 99 days </Td> <Td> Indian National Congress </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 30 April 1977 </Td> <Td> 23 June 1977 </Td> <Td> 54 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Dissolved </Td> </Tr> <Tr> <Td> 10 </Td> <Td> Ram Naresh Yadav Nidhauli Kalan </Td> <Td> </Td> <Td> 23 June 1977 </Td> <Td> 27 February 1979 </Td> <Td> 1 year, 249 days </Td> <Td> Janata Party </Td> <Td> </Td> <Td> Seventh Assembly (1977--80) (1977 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 11 </Td> <Td> Banarsi Das Hapur </Td> <Td> </Td> <Td> 28 February 1979 </Td> <Td> 17 February 1980 </Td> <Td> 354 days </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 17 February 1980 </Td> <Td> 9 June 1980 </Td> <Td> 113 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Dissolved </Td> </Tr> <Tr> <Td> 12 </Td> <Td> V.P. Singh Tindwari </Td> <Td> </Td> <Td> 9 June 1980 </Td> <Td> 18 July 1982 </Td> <Td> 2 years, 39 days </Td> <Td> Indian National Congress </Td> <Td> </Td> <Td> Eighth Assembly (1980--85) (1980 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 13 </Td> <Td> Sripati Mishra Isauli </Td> <Td> </Td> <Td> 19 July 1982 </Td> <Td> 2 August 1984 </Td> <Td> 2 years, 14 days </Td> </Tr> <Tr> <Td> (9) </Td> <Td> N.D. Tiwari (2) Kashipur </Td> <Td> </Td> <Td> 3 August 1984 </Td> <Td> 10 March 1985 </Td> <Td> 1 year, 52 days </Td> </Tr> <Tr> <Td> 11 March 1985 </Td> <Td> 24 September 1985 </Td> <Td> Ninth Assembly (1985--89) (1985 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 14 </Td> <Td> Vir Bahadur Singh Paniyara </Td> <Td> </Td> <Td> 24 September 1985 </Td> <Td> 24 June 1988 </Td> <Td> 2 years, 274 days </Td> </Tr> <Tr> <Td> (9) </Td> <Td> N.D. Tiwari (3) Kashipur </Td> <Td> </Td> <Td> 25 June 1988 </Td> <Td> 5 December 1989 </Td> <Td> 1 year, 163 days </Td> </Tr> <Tr> <Td> 15 </Td> <Td> Mulayam Singh Yadav Jaswantnagar </Td> <Td> </Td> <Td> 5 December 1989 </Td> <Td> 24 June 1991 </Td> <Td> 1 year, 201 days </Td> <Td> Janata Dal </Td> <Td> </Td> <Td> Tenth Assembly (1989--91) (1989 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 16 </Td> <Td> Kalyan Singh Atrauli </Td> <Td> </Td> <Td> 24 June 1991 </Td> <Td> 6 December 1992 </Td> <Td> 1 year, 165 days </Td> <Td> Bharatiya Janata Party </Td> <Td> </Td> <Td> Eleventh Assembly (1991--92) (1991 election) </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 6 December 1992 </Td> <Td> 4 December 1993 </Td> <Td> 363 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Dissolved </Td> </Tr> <Tr> <Td> (15) </Td> <Td> Mulayam Singh Yadav (2) Jaswantnagar </Td> <Td> </Td> <Td> 4 December 1993 </Td> <Td> 3 June 1995 </Td> <Td> 1 year, 181 days </Td> <Td> Samajwadi Party </Td> <Td> </Td> <Td> Twelfth Assembly (1993--95) (1993 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 17 </Td> <Td> Mayawati </Td> <Td> </Td> <Td> 3 June 1995 </Td> <Td> 18 October 1995 </Td> <Td> 137 days </Td> <Td> Bahujan Samaj Party </Td> <Td> </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 18 October 1995 </Td> <Td> 17 October 1996 </Td> <Td> 1 year, 154 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Dissolved </Td> </Tr> <Tr> <Td> 17 October 1996 </Td> <Td> 21 March 1997 </Td> <Td> Thirteenth Assembly (1996--2002) (1996 election) </Td> <Td> </Td> </Tr> <Tr> <Td> (17) </Td> <Td> Mayawati (2) Harora </Td> <Td> </Td> <Td> 21 March 1997 </Td> <Td> 21 September 1997 </Td> <Td> 184 days </Td> <Td> Bahujan Samaj Party </Td> <Td> </Td> </Tr> <Tr> <Td> (16) </Td> <Td> Kalyan Singh (2) Atrauli </Td> <Td> </Td> <Td> 21 September 1997 </Td> <Td> 12 November 1999 </Td> <Td> 2 years, 52 days </Td> <Td> Bharatiya Janata Party </Td> <Td> </Td> </Tr> <Tr> <Td> 18 </Td> <Td> Ram Prakash Gupta MLC </Td> <Td> </Td> <Td> 12 November 1999 </Td> <Td> 28 October 2000 </Td> <Td> 351 days </Td> </Tr> <Tr> <Td> 19 </Td> <Td> Rajnath Singh Haidergarh </Td> <Td> </Td> <Td> 28 October 2000 </Td> <Td> 8 March 2002 </Td> <Td> 1 year, 131 days </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 8 March 2002 </Td> <Td> 3 May 2002 </Td> <Td> 56 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Fourteenth Assembly (2002--07) (2002 election) </Td> <Td> </Td> </Tr> <Tr> <Td> (17) </Td> <Td> Mayawati (3) Harora </Td> <Td> </Td> <Td> 3 May 2002 </Td> <Td> 29 August 2003 </Td> <Td> 1 year, 118 days </Td> <Td> Bahujan Samaj Party </Td> <Td> </Td> </Tr> <Tr> <Td> (15) </Td> <Td> Mulayam Singh Yadav (3) Gunnaur </Td> <Td> </Td> <Td> 29 August 2003 </Td> <Td> 13 May 2007 </Td> <Td> 3 years, 257 days </Td> <Td> Samajwadi Party </Td> <Td> </Td> </Tr> <Tr> <Td> (17) </Td> <Td> Mayawati (4) MLC </Td> <Td> </Td> <Td> 13 May 2007 </Td> <Td> 15 March 2012 </Td> <Td> 4 years, 307 days </Td> <Td> Bahujan Samaj Party </Td> <Td> </Td> <Td> Fifteenth Assembly (2007--12) (2007 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 20 </Td> <Td> Akhilesh Yadav MLC </Td> <Td> </Td> <Td> 15 March 2012 </Td> <Td> 19 March 2017 </Td> <Td> 5 years, 4 days </Td> <Td> Samajwadi Party </Td> <Td> </Td> <Td> Sixteenth Assembly (2012--17) (2012 election) </Td> <Td> </Td> </Tr> <Tr> <Td> 21 </Td> <Td> Yogi Adityanath MLC </Td> <Td> </Td> <Td> 19 March 2017 </Td> <Td> Incumbent </Td> <Td> 346 days </Td> <Td> Bharatiya Janata Party </Td> <Td> </Td> <Td> Seventeenth Assembly (2017--) (2017 election) </Td> <Td> </Td> </Tr> </Table> <Tr> <Th> No </Th> <Th_colspan="2"> Name Constituency </Th> <Th_colspan="2"> Term of office </Th> <Th> Tenure length </Th> <Th_colspan="2"> Party </Th> <Th> Assembly (Election) </Th> <Th> Ref </Th> </Tr>

List of the chief minister of uttar pradesh
find me the text answering this question