5 2 12
P 1 1
P 1 2
P 2 1
P 2 2
R 1 1
R 1 2
R 2 1
R 2 2
Q 1 1
Q 1 2
Q 2 1
Q 2 2
