Representable with sum of squares#738

Representable with sum of squares

1 second
128 megabytes
Easy (≈1000)

Find all numbers from 1 to n, representable with the sum of two squares of different positive integers.

Input

One positive integer n (n ≤ 10000).

Output

Print in one line in increasing order all numbers from 1 to n, representable with the sum of two squares of different positive integers.

Examples

Example 1

Loading
Loading