Inverse
Very easy
Execution time limit is 4 seconds
Runtime memory usage limit is 128 megabytes
Prime number is given. The inverse number to is such number that . It's possible to prove that for each exists only one inverse.
For all possible values of find the inverse numbers.
Input
One prime number .
Output
Print numbers. The -th printed number should be the inverse to .
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 39%