Arab Collegiate Programming Contest 2012 E, I