input: [Char.] 1 [Pattern b s b s b s b s b] w n n w n n n n w [Char._3] D [Char._6] P [Pattern b s b s b s b s b_7] n n w n w n n w n [Char._9] . [Pattern b s b s b s b s b_10] w w n n n n w n n [Pattern b s b s b s b s b_4] 
output: n n n n w w n n w