Tomaz Hocevar's submission of The Reversed World | CodeChef