Gennady Korotkevich's submission of Collision in Space | CodeChef