Zhang Yide's submission of Naughty and Balls | CodeChef