1 4 2 2 ABBA 3 ABBB 4 BAAA 5 BABB 6 AB 7 BB 8 6 2 9 ABCDCD 10 BCDCBD 11 BACDDC 12 DCBDCA 13 DCBABD 14 ABCDBA 15 BC 16 CD 17 0 0 18 19
1 4 2 2 ABBA 3 ABBB 4 BAAA 5 BABB 6 AB 7 BB 8 6 2 9 ABCDCD 10 BCDCBD 11 BACDDC 12 DCBDCA 13 DCBABD 14 ABCDBA 15 BC 16 CD 17 0 0 18 19