In the magical land of Anchuria there are only \(K\) laws and \(N\) ministers. The probability that a randomly chosen minister knows a randomly chosen law is \(p\). One day, the ministers gathered for a meeting, to write the Constitution. If at least one minister knows the law, then this law will be taken into account in the Constitution, otherwise this law will not be taken into account in the Constitution. Find:
a) The probability that exactly \(M\) laws will be taken into account into the Constitution.
b) The mathematical expectation of the number of registered laws.