A technique for identifying nuclei in the MONICA experiment