Zhang Yide's submission of Jam | CodeChef