Factorization - Preparation to IOI Part 2