When two different phases are mixed together we calculate by,
m1CP1(Th - Tf) =m2CP2(Tf - TL)
where,
Here CP1 is specific heat capacity of Steam = 1.996 J/K-g
CP2 is the specific heat capacity of Ice = 2.108 J/K-g
Th = 100oC = 373 K
Tf is the final temperature after mixing
TL= 0 oC = 273 K
m1CP1(Th - Tf) =m2CP2(Tf - TL)