Pion and proton emission in interactions induced by relativistic heavy nuclei withZ?12