As a German University in Cairo (GUC) student and a basketball pla
A team is to be formed of n pla
Herr Wafa was also able to guarantee a spot on the team, using his special powers. But since he hates floating-point numbers, he needs your help at finding the probability that he will have at least one teammate belonging to his department.
Note that every possible team containing Herr Wafa is equally probable. Consider all the students different from each other.
The first line contains three integers n, m and h (1 ≤ n ≤ 100, 1 ≤ m ≤ 1000, 1 ≤ h ≤ m) — the number of pla
The second line contains a single-space-separated list of m integers si (1 ≤ si ≤ 100), denoting the number of students in the i-th department. Note that sh includes Herr Wafa.
3 2 1
2 1
1
In the first example all 3 pla
In the second example, there are not enough pla
In the third example, there are three possibilities to compose the team containing Herr Wafa. In two of them the other pla