Time limit
0.25s
Memory limit
128 MB
Given two integers A and B, compute the sum of every integer between them, including both endpoints. A may be greater than B; in that case, still sum every integer in the closed interval between the two values.
The first line contains two integers A and B separated by a space.
Print the sum of every integer between A and B on the first line. The output value is guaranteed to be between -2,147,483,648 and 2,147,483,647, inclusive.