Uniform Chemistry

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

In a parallel universe there are nn chemical elements, numbered from 11 to nn. The element number nn has not been discovered so far, and its discovery would be a pinnacle of research and would bring the person who does it eternal fame and the so-called SWERC prize.

There are mm independent researchers, numbered from 11 to mm, that are trying to discover it. Currently, the ii-th researcher has a sample of the element s_is\_i. Every year, each researcher independently does one fusion experiment. In a fusion experiment, if the researcher currently has a sample of element aa, they produce a sample of an element bb that is chosen uniformly at random between a+1a+ 1 and nn, and they lose the sample of element aa. The elements discovered by different researchers or in different years are completely independent.

The first researcher to discover element nn will get the SWERC prize. If several researchers discover the element in the same year, they all get the prize. For each i=1,2,,mi = 1, 2, \dots , m, you need to compute the probability that the ii-th researcher wins the prize.

입력

The first line contains two integers nn and mm (2n1002 ≤ n ≤ 100, 1m101 ≤ m ≤ 10) — the number of elements and the number of researchers.

The second line contains mm integers s_1,s_2,,s_ms\_1, s\_2, \dots , s\_m (1s_i<n1 ≤ s\_i < n) — the elements that the researchers currently have.

출력

Print mm floating-point numbers. The ii-th number should be the probability that the ii-th researcher wins the SWERC prize. Your answer is accepted if each number differs from the correct number by at most 10810^{-8}.