Zhang Yide's submission of Tandem | CodeChef