The third integral of motion for low-velocity stars