{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tN friends go to the local super market together. The probability of their buying something from the market is \u003cimg height\u003d\"24\" src\u003d\"http://uva.onlinejudge.org/external/111/p11181a.gif\" width\u003d\"107\" /\u003erespectively. After their marketing is finished you are given the information that exactly r of them has bought something and others have bought nothing. Given this information you will have to find their individual buying probability.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe input file contains at most 50 sets of inputs. The descri_ption of each set is given below:\u003c/p\u003e\r\n\u003cp\u003e\r\n\tFirst line of each set contains two integers N (1 \u0026le; N \u0026le; 20) and r(0 \u0026le; r \u0026le; N). Meaning of N and r are given in the problem statement. Each of the next N lines contains one floating-point number \u003cimg height\u003d\"24\" src\u003d\"http://uva.onlinejudge.org/external/111/p11181b.gif\" width\u003d\"19\" /\u003e\u0026nbsp;(0.1\u0026lt;\u003cimg height\u003d\"24\" src\u003d\"http://uva.onlinejudge.org/external/111/p11181b.gif\" width\u003d\"19\" /\u003e\u0026lt;1) which actually denotes the buying probability of the i-th friend. All probability values should have at most two digits after the decimal point.\u0026nbsp;\u003c/p\u003e\r\n\u003cp\u003e\r\n\tInput is terminated by a case where the value of N and r is zero. This case should not be processes.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tFor each line of input produce N+1 lines of output. First line contains the serial of output. Each of the next N lines contains a floating-point number which denotes the buying probability of the i-th friend given that exactly r has bought something. These values should have six digits after the decimal point. Follow the exact format shown in output for sample input. Small precision errors will be allowed. For reasonable precision level use double precision floating-point numbers.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t3 2\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0.20\u003cbr /\u003e\r\n\t0.30\u003cbr /\u003e\r\n\t5 1\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0.10\u003cbr /\u003e\r\n\t0 0\u003c/p\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tCase 1:\u003cbr /\u003e\r\n\t0.413043\u003cbr /\u003e\r\n\t0.739130\u003cbr /\u003e\r\n\t0.847826\u003cbr /\u003e\r\n\tCase 2:\u003cbr /\u003e\r\n\t0.200000\u003cbr /\u003e\r\n\t0.200000\u003cbr /\u003e\r\n\t0.200000\u003cbr /\u003e\r\n\t0.200000\u003cbr /\u003e\r\n\t0.200000\u003c/p\u003e"}}]}