M-out-of-n system