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

Sum a*a + ... + b * b

Sum a*a + ... + b * b

Given two positive integers a and b, find the sum a * a + ... + b * b.

Input

Two positive integers a and b (1ab1000).

Output

Print the value of the given sum.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 7
Output example #1
135
Author Michael Medvedev
Шляхи по деревоподібній системі доріг (TreeWays)