A Real Estate builder needs to construct a studio apartment. He wants the area of apartments to be a perfect square. To ensure this, he randomly selected 2 numbers and decided to find all the perfect squares among them(inclusive of the two numbers selected). He also wishes to find the sum of all the perfect squares selected, which will be used as area of the apartments.

    Write an algorithm to make an automated system which will help the builder to find the exact area for building the apartments.

 

Input:

The first line of input consists of integer value1,representing the first random value.

The second line of input consists of integer value1,representing the second random value.

 

Output:

Print an integer representing the sum of perfect squares between value1 and value2

 

Example:

Input:

1

10

Output:

13

 

Explanation:

The perfect squares between 1 and 10 are 4,9 whose sum is 13

 

Code: