Gennady Korotkevich's submission of Gasoline | CodeChef