apple pie's submission of Which Mixture | CodeChef