Dormitory Password Recovery
Time limit2sMemory limit1024 MB
Recover N hidden coefficients of a linear function mod 998244353 using at most N interactive queries, where every argument must be distinct.
Problem
This is an interactive problem.

Hanbyeol and Woobin were assigned to the same dormitory room. Woobin did not want to share a room with Hanbyeol, so before Hanbyeol moved in, Woobin installed a password lock on the door. To open the lock, you must find integers that satisfy . Woobin provides the following function to test your programming skill. You choose integers and learn the value .
Let be the set of integers from 0 up to, but not including, 998244353. The function is defined as
You may use the function at most times. Across all uses, the arguments must all be different. That is, if you use the function times, all arguments must be distinct.
Recover the password and surprise Woobin.
Constraints
Hint
Your program must flush the output buffer immediately after printing anything. Flush methods by language:
- C:
fflush(stdout) - C++:
std::cout.flush() - Python:
sys.stdout.flush() - Java:
System.out.flush() - For other languages, check the documentation of that language.