A
B
C
D

A
Q P
B
C
D

A
B
C
D

A B
C D

Q P
AB
C D