atcoder#ARC119A. [ARC119A] 119 × 2^23 + 1
[ARC119A] 119 × 2^23 + 1
Score: points
Problem Statement
In problems on AtCoder, you are often asked to:
find the answer modulo .
Here, we have . Related to this, solve the following prolem:
You are given an integer . Print the minimum possible value of for a triple of non-negative integers satisfying .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
998244353
143
We have , in other words, the triple satisfies . The value for this triple is . There is no such triple where , so is the correct output.
1000000007
49483
We have , in other words, the triple satisfies . The value for this triple is . There is no such triple where , so is the correct output.
1
1
Note that we have .
998984374864432412
2003450165