So this in stages.
q1 = heat to raise T of solid ice from -123 to solid ice at zero C.
q1 = mass ice x specific heat ice x (Tfinal-Tinitial)
where Tfinal = 0 and Tinitial = -123.
q2 = heat to melt ice.
q2 = mass ice x heat fusion.
q3. heat to raise T of liquid water from zero C to 100 C.
[mass water x specific heat water x (Tfinal-Tinitial)
q4 = heat to convert liquid water at 100 C to steam at 100 C.
q4 = [mass water x heat vaporization)
q5 = heat to raise T of steam at 100 to steam at 125 C.
q5 = [mass steam x specific heat steam x (Tfinal-Tinitial)]
Total Q = sum individual q values.