uwi's submission of Math Hatter | CodeChef