A cantus user's status is characterized by a complex number where both real and imaginary parts are integers. Let $$$\mathbb{G}$$$ be the set of all such complex numbers.
Let's say $$$x \in \mathbb{G}$$$ divides $$$y \in \mathbb{G}$$$ if there exists $$$k \in \mathbb{G}$$$ with $$$k\cdot x = y$$$.
$$$x, y \in \mathbb{G}$$$ are said to be uncorrelated if $$$1$$$, $$$-1$$$, $$$i$$$, $$$-i$$$ are the only element of $$$\mathbb{G}$$$ dividing both $$$x$$$ and $$$y$$$. Otherwise, $$$x$$$ and $$$y$$$ are said to be correlated.
Saki knows that the probability of a cantus user turning into a karma demon is proportional to a quantity called the isolation index. For a cantus user with status $$$x \ne 0$$$, the isolation index is computed as follows.
Saki wants to compute the sum of the isolation index of all non-zero status $$$a+bi \in \mathbb{G}$$$, $$$a \in \mathbb{Z}$$$, $$$b \in \mathbb{Z}$$$ with $$$a^2+b^2 \le N$$$. Write a program to help Saki find the desired sum.
The input is given in the following format:
| $$$N$$$ |
The input satisfies the following constraints:
Print a single integer, the sum of isolation index over all possible non-zero status $$$a+bi$$$ satisfying $$$a^2+b^2 \le N$$$, modulo $$$998\,244\,353$$$.
1
4
2
8
5
48
100
10400
10000000000
985340907
| Name |
|---|


