In other words, melting ice and evaporating water takes energy, and this energy is stored as internal (chemical) energy of water or vapor.
(melting ice and evaporating water; takes; energy) (this energy; is stored; as internal (chemical) energy of water or vapor)
melting ice and evaporating water this energy
takes is stored
energy
as internal (chemical) energy of water or vapor