Modular division
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Three positive integers , and are given. Compute the value of . In other words, find a value such that .
Input
Three positive integers . It is known that is a prime number.
Output
Print the value of .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 50%