A neutron is transformed into a proton (that stays in the nucleus) and an electron (which is emitted).
Loss: 1 neutron Gain: 1 proton