Heeju's Math Exam

No attempts yetTime limit1sMemory limit128 MB

Problem

An integer sequence is built by the following rule: 1 appears once, 2 appears twice, 3 appears three times, …, that is, the integer kk appears kk times in a row. So the sequence begins like this.

1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 1,\ 2,\ 2,\ 3,\ 3,\ 3,\ 4,\ 4,\ 4,\ 4,\ 5,\ \dots

Given two integers AA and BB, compute and print the sum of all values from the AA-th term to the BB-th term of this sequence, inclusive.

Input

A single line contains two integers AA and BB separated by a space. (1AB10001 \le A \le B \le 1000)

Output

Print, on one line, the sum of the terms from the AA-th to the BB-th.