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:
Protectorate of Bohemia and Moravia
Table title:
Czech government
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Portfolio </th><th colspan=2 rowspan=1 > Minister </th><th colspan=1 rowspan=1 > Took office </th><th colspan=1 rowspan=1 > Left office </th><th colspan=1 rowspan=1 > Party </th></tr>
<tr> <td colspan=1 rowspan=1 > Czech State President </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Emil Hácha </td><td colspan=1 rowspan=1 > 16 March 1939 </td><td colspan=1 rowspan=1 > 9 May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=4 > Minister President </td><td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > Rudolf Beran </td><td colspan=1 rowspan=1 > 16 March 1939 </td><td class="highlighted"  colspan=1 rowspan=1 > 27 April 1939 </td><td colspan=1 rowspan=1 > National Unity </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > Alois Eliáš </td><td class="highlighted"  colspan=1 rowspan=1 > 27 April 1939 </td><td class="highlighted"  colspan=1 rowspan=1 > 2 October 1941 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jaroslav Krejčí </td><td colspan=1 rowspan=1 > 19 January 1942 </td><td colspan=1 rowspan=1 > 19 January 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Richard Bienert </td><td colspan=1 rowspan=1 > January 1945 </td><td colspan=1 rowspan=1 > May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=3 > Leader of the Party </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Josef Nebeský </td><td colspan=1 rowspan=1 > 1939 </td><td colspan=1 rowspan=1 > 1941 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Josef Fousek </td><td colspan=1 rowspan=1 > 1941 </td><td colspan=1 rowspan=1 > 1942 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Tomáš Krejčí </td><td colspan=1 rowspan=1 > 1942 </td><td colspan=1 rowspan=1 > 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 > Minister of Justice </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jaroslav Krejčí </td><td colspan=1 rowspan=1 > 1939 </td><td colspan=1 rowspan=1 > 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=2 > Minister of Interior </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Josef Ježek </td><td colspan=1 rowspan=1 > 1939 </td><td colspan=1 rowspan=1 > 1942 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Richard Bienert </td><td colspan=1 rowspan=1 > 1942 </td><td colspan=1 rowspan=1 > 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 > Minister of Finance </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Josef Kalfus [cs] </td><td colspan=1 rowspan=1 > 16 March 1939 </td><td colspan=1 rowspan=1 > 5 May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 > Minister of Economics </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Walter Bertsch </td><td colspan=1 rowspan=1 > 1942 </td><td colspan=1 rowspan=1 > 1945 </td><td colspan=1 rowspan=1 > NSDAP </td></tr>
<tr> <td colspan=1 rowspan=3 > Minister of Agriculture </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Ladislav Karel Feierabend [cs] </td><td colspan=1 rowspan=1 > 1939 </td><td colspan=1 rowspan=1 > 1940 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Mikuláš z Bubna-Litic [cs] </td><td colspan=1 rowspan=1 > February 1940 </td><td colspan=1 rowspan=1 > January 1942 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Adolf Hrubý [cs] </td><td colspan=1 rowspan=1 > 19 January 1942 </td><td colspan=1 rowspan=1 > 5 May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=2 > Minister of Traffic </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jiří Havelka [cs] </td><td colspan=1 rowspan=1 > April 1939 </td><td colspan=1 rowspan=1 > April 1941 </td><td colspan=1 rowspan=1 > Independent </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jindřich Kamenický [cs] </td><td colspan=1 rowspan=1 > April 1941 </td><td colspan=1 rowspan=1 > 5 May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=2 > Minister of Education </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jan Kapras </td><td colspan=1 rowspan=1 > 16 March 1939 </td><td colspan=1 rowspan=1 > 19 January 1942 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Emanuel Moravec </td><td colspan=1 rowspan=1 > 19 January 1942 </td><td colspan=1 rowspan=1 > 5 May 1945 </td><td colspan=1 rowspan=1 > National Partnership </td></tr>
<tr> <td colspan=1 rowspan=1 > Minister without Portfolio </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Jiří Havelka [cs] </td><td colspan=1 rowspan=1 > March 1939 </td><td colspan=1 rowspan=1 > April 1939 </td><td colspan=1 rowspan=1 > Independent </td></tr>
</table>
Question:
Who replaced Rudolf Beran on the 27 April 1939 and when did his successor then leave office?
Answer:
Rudolf Beran was replaced by Alois Eliáš on 27 April 1939 and Alois Eliáš left office on 2 October 1941.