SRM 583 DIV1 MEDIUM