Resul Hangeldiyev's submission of GRID | CodeChef