#0000EA

Instrukcije

Little Marica started elementary school this year. Soon she will have her first exams, including the math exam. She is taking it seriously and thinks she is ready. Her older brother is helping her by giving her problems to solve.


In one of his problems he writes down a sequence of numbers consisting in order of one number 1,two numbers 2, three numbers 3 etc. Now he tells Marica two integers A and B; her task is to find the sum of integers with indices between A and B, inclusive. For example, if A is 1 and B is 3, then the answer is the sum of the first three elements, which is 1+2+2=5.

Write a program that finds the sum so that Marica's brother can verify her result.


Input
The first and only line contains the positive integers A and B, 1 ≤ A ≤ B ≤ 1000.

Output
Output the sum on a single line.


Input:
1 3
Output:
5


Input:
50 50
Output: 10


Input:
3 7
Output: 15


Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.