Niyaz Nigmatullin's submission of Collision in Space | CodeChef