Demo

A A
A A B B C C D D E E F F
A A B B C C D D
A A B B C C
A A B B C C D D E E
A A B B C C D D
A A B B
A A B B