[SRM555] XorBoardDivTwo by Yanzhe Chen