sugim48's submission of Math genius | CodeChef