θ = π in SU( N )/ Z N gauge theories