A
B
Q
B
Q
Q
A
B
A
A
Q
Q
Q
Q
Q
A
A
A
A
A
B
Q
A
B
Q