12cm is the shortest length of string that can be bent into a right triangle whose three sides are all integers. Here are a few more such lengths.
A string of length 20cm cannot be bent into a right triangle with integer sides in any way.
Some lengths give several different right triangles. For example, 120cm gives three.
Let L be the length of the string. Among the values L≤N, how many give exactly one right triangle with integer sides? Triangles that differ only in the order of the sides count as the same triangle.
The input holds several tests. Each line has one integer N, and the tests continue to the end of the input. (1≤N≤20000000)
For each test, print on its own line the number of values L≤N that give exactly one right triangle with integer sides.