Symmetry-protected topological invariants of symmetry-protected topological phases of interacting bosons and fermions | Synapse