Input (grade 10): Tymoshenko was the Prime Minister of Ukraine from 24 January to 8 September 2005, and again from 18 December 2007 to 4 March 2010.
Output (grade 5): Her first term was from 24 January to 8 September 2005.