SRM 572 DIV1 HARD NextAndPrev