can u calculate the number of moles 0.5g of H?

If that is 0.5 g H, then 0.5/1 but if it is 0.5 g H2, moles = 0.5/2.