To understand spectral lines you have to understand some Atomic Physics.
The number of protons in the nucleus of an atom is what defines an atom.
Q.) How many neutrons in ?