[SRM603] MiddleCode by Kaiyang Lv