1 kg of water has more heat than 1 kg of ice.
To heat 1 kg of ice from 10 C to 30 C takes 83.6 kJ.
To melt ice and to raise its temperature by 20 C, it takes 333.5 kJ for ice to melt and 83.5 kJ to increase the temperature by 20 C, so total 427.15 kJ heat is required.
So, 1 kg of ice needs more energy to reach a temperature equal to 1 kg of water.