#ABC266B. [ABC266B] Modulo Number

[ABC266B] Modulo Number

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

No submission language available for this problem.

Score : 200200 points

Problem Statement

You are given an integer NN between −1018-10^{18} and 101810^{18} (inclusive).

Find an integer xx between 00 and 998244353−1998244353 - 1 (inclusive) that satisfies the following condition. It can be proved that such an integer is unique.

  • N−xN-x is a multiple of 998244353998244353.

Constraints

  • NN is an integer between −1018-10^{18} and 101810^{18} (inclusive).

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

998244354
1

998244354−1=998244353998244354-1 = 998244353 is a multiple of 998244353998244353, so the condition is satisfied.

-9982443534
998244349

−9982443534−998244349=−10980687883-9982443534-998244349= -10980687883 is a multiple of 998244353998244353, so the condition is satisfied.