Three positive integers a, b and n are given. Find the value of a / b mod n. You must fund such x that b * x = a mod n.
Three positive integers a, b, n (n ≤ 2 * 10^9, 1 ≤ a, b < n). It is known that n is prime.
10^9
Print the value of a / b mod n.