Tomaz Hocevar's submission of Sereja and Game | CodeChef