import numpy as np
nlevels = 3
for p1 in range(nlevels):
for p2 in range(nlevels):
iconfig = np.zeros(nlevels)
iconfig[p1] += 1
iconfig[p2] += 1
count = len(str(iconfig))-1
print('%s' % str(iconfig))
print (count)