def pstring(state, num):
	"""Return a nice string give a state and its count.

	Example:
	>>> pstring(X(0,-1,1),4)
	( 0, *, 1) :  4

	"""
	a,b,c = state
	if b == -1: 
		b = " *"
	return f"({a:2},{b:2},{c:2}) : {num:2}"