A submarine fires n torpedoes in a row and all the firings
are independent. Each torpedo hits the ship with the probability p
and, in case of the hit, it damages randomly one of the k sections
of the ship. The ship sinks if at least two sections are damaged.
Find the probability that the ship will sink.