3
6 2
1 aaa*b
4 bbb
6 1
1 aaa*bb
6 2
1 aa*bbb
4 *bbb
