Taking into account the motion of the nucleus of a hydrogen atom