Sum of numbers in a range

TypeScript Easy loops

Task «Sum of numbers in a range»

Write a program that reads two integers A and B (A ≤ B) and outputs the sum of all integers from A to B inclusive. It is guaranteed that A and B do not exceed 1000 in absolute value.

Input Format

In the first line, an integer A is entered, in the second line — an integer B.

Output Format

One integer — the sum of numbers from A to B inclusive.

Examples

Example 1

INPUT
1 5
OUTPUT
15

Example 2

INPUT
5
OUTPUT
15

Example 3

INPUT
-3 2
OUTPUT
-3

Example 4

INPUT
1
OUTPUT
1
main.ts