e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Sum of integers on the interval

Sum of integers on the interval

Find the sum of all integers from a to b.

Input

Two integers а and b, no more than 109 by absolute value.

Output

Print the sum of all integers from a to b.

Time limit 1 second
Memory limit 128 MiB