Nick Buelich's submission of Factorisation | CodeChef