Cherry jam with walnuts

Ingredients:1 kg of cherries;1 kg of walnuts;265 g of sugar. Cooking method: