atcoder#ABC266B. [ABC266B] Modulo Number
[ABC266B] Modulo Number
Score : points
Problem Statement
You are given an integer between and (inclusive).
Find an integer between and (inclusive) that satisfies the following condition. It can be proved that such an integer is unique.
- is a multiple of .
Constraints
- is an integer between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
998244354
1
is a multiple of , so the condition is satisfied.
-9982443534
998244349
is a multiple of , so the condition is satisfied.