Sum on a segment#682