Dino and snow buildings
Dino travels to China (the Coronavirus was not yet spread there) and sees buildings there. The height of the first building is , the second building has the height , the third one is , etc. The height of the last building is (all heights are given in meters).
After a day, Dino fell asleep and saw an interesting view in the morning: it snowed at night and the height of all buildings increased equally! Dino wants to know how many meters of snow fell. To do this, he went to two neighboring buildings (for example, - d and - th) and measured their new heights. Determine how many meters of snow fell if the heights of these buildings equal to and meters respectively.
Input
Two integers and . It is known that the correct answer always exists, and the height of the fallen snow is no more than meters.
Output
Print the height of the fallen snow.