Zhang Yide's submission of Sereja and LCM | CodeChef