Victor Omelyanenko's submission of A Good Problem | CodeChef