Input (grade 12): KaczyÅ ski served as Mayor of Warsaw from 2002 until 22 December 2005, the day before his presidential inauguration.
Output (grade 7): KaczyÅ ski served as Mayor of Warsaw from 2002, until the day before he became president.