Zhang Yide's submission of Misha and Gym | CodeChef