Loss of heat by the hot body = gain of heat by the cold body.
Since, the heat capacity increases with temperature, the hotter body will lose more energy when its temperature falls down from 100oC to 50oC compared to the energy required by the cold body to raise its temperature from 0oC to 50oC. Thus, the temperature will be more than 50oC.