a [1]
b [2]
c [3]
x [1]
z [2]
p [3]
q [2]
r [1]