In order to calculate the heat needed to change the temperature of a substance, you need to know the specific heat capacity (or specific heat) of the substance. The specific heat is defined as the amount of energy needed to raise the temperature of one gram of the substance by one degree Celsius. Once you know the specific heat of your substance you just use the formula:
q = mCΔT
Where q is the amount of heat, m is the mass of your substance, C is the specific heat capacity, and ΔT is the change in temperature.
You should be able to find the specific heat of ice in any high-school chemistry textbook. Also, your book should have additional information about specific heat and problems like this one.