How many calories are needed to heat 247 grams of ice at 14F to water at 50C?

s(ice)=0.500kcal/kg/C, s(water)=1.000kcal/kg/C ,hf= 79.7kcal/kg, hv= 540 kcal/kg