apple pie's submission of Akash and Grid | CodeChef