7 1 1 AB AB 1 1 AB BA 2 2 BBAAA AABAB 3 2 AABBABB BBABBAA 4 4 BBBAAABABAABAABAA AAAABBABAABBBAAAB 5 8 ABBAAABABBABBABABAAABABABBAABBBAAAAABBBAB AAABBABAABBBABABABAAAABBBAABBBBBAABBABAAA 8 7 BBBAABAABAABBBBAABBABAAAAABBBBBAAABAABBBABABBBBBAABBAAAAA ABBBAAAABBBBBBBBAAAABBABBABABAAABABBBBBBAABBAAAAAAAABAABB