Hershey booked an increase in first-half profits this morning (24 July) despite "headwinds" from rising input costs and sales elasticity.