Ivan's submission of Factorize | CodeChef