how does the atomic mass of the hydrogen is 1
Hydrogen atom does not have any neutron in its nucleus and there is only a single proton present in it.
so..
Number of neutrons = 0
Number of protons =1
and
Atomic mass = number of neutrons +number of protons = 0+1 = 1