Perfect Square Pairs#12428

Perfect Square Pairs

1 second
128 megabytes
Medium

Given an integer . Find the number of pairs such that:

Input

One integer n~(1 \le n \le 10^6).

Output

Print the answer to the problem. Since the answer can be large, print it modulo 10^9 + 7.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading