A piece of Mg ribbon is heated to redness in an atmosphere of Nitrogen and on cooling with water. The evolved gas is