input: [Char.] 4 [Pattern b s b s b s b s b] n n n w w n n n w [Char._3] G [Char._6] S [Pattern b s b s b s b s b_7] n n w n n n w w n [Char._9] $ [Pattern b s b s b s b s b_10] n w n w n w n n n [Pattern b s b s b s b s b_4] 
output: n n n n n w w n w