Mass number of an element is the total number of protons and neutrons present inside the atomic nucleus of the element. It is represented by A, A is different for different elements. Mass number of a nucleus is sometimes equal to its atomic number,for example in case of hydrogen, number of neutrons= 0.
So, mass number = atomic number.