apple pie's submission of Which Division | CodeChef