Mass spectroscopy problem