Polygon
Time limit1sMemory limit256 MB
Sum the integers n between a and b for which some n-gon has all of its sides crossed by a single straight line.
Problem
Seunghyun drew the figure below on a sheet of paper.

He noticed that for the quadrilateral at the bottom, a single straight line cuts all four sides.

That made him wonder how many sides such a polygon can have.
Write a program that adds up every for which an -gon exists whose sides can all be cut by one straight line. There are infinitely many such , so count only the ones with between and , inclusive. A polygon has at least three sides, so is at least 3.
Input
The first line contains two natural numbers and , separated by one space. ()
Output
Print the sum of every that satisfies the condition on the first line.