Gennady Korotkevich's submission of Match the Streams | CodeChef