Gennady Korotkevich's submission of Prefix And | CodeChef