Electron affinity is the energy change that occurs when a neutral atom accepts an electron to form a negative ion. The more negative the electron affinity, the more energy is released when an electron is accepted.
Fluorine has the highest electron affinity of all the elements, meaning that it releases the most energy when it accepts an electron. This is because fluorine has a very high electronegativity, which means that it has a strong attraction for electrons.
Nitrogen has a lower electron affinity than fluorine, but it is still positive. This means that nitrogen still releases energy when it accepts an electron, but not as much as fluorine.