SRM 581 DIV1 Medium