{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cbr\u003eIn\u003cimg src\u003d\"CDN_BASE_URL/bdb75e696e11ca2cb0aaa7c8adbefffe?v\u003d1715982548\" style\u003d\"vertical-align: text-bottom;top: -2.0px;max-width: 100.0%;max-height: 100.0%;\"\u003ecountry there was a championship of the game \u0027What? Where? When?\u0027. The game has the following rules.\u003cbr\u003eThere is a round table divided into 13 equal sectors. The table has an arrow which can point at a sector. The sectors are numbered from 1 to 13 in counter-clockwise order. At the beginning of the game, each sector contains one envelope. Each of the envelopes in sectors 1 through 12 contains one question. The envelope in sector 13 is empty. \u003cbr\u003eThere are two teams, the club team and the TV viewers team. The viewers submit the questions, which the club team has to answer. These questions are put into the envelopes on the table. There are also questions submitted through Internet.\u003cbr\u003eThe game consists of rounds. Each round the current envelope is chosen in the following way: the arrow is rotated at a random angle (therefore the probability of it pointing at a particular sector is 1/13). Then it is rotated in counter-clockwise order until it points at a sector having a envelope; this envelope is chosen as current. (If after the random rotation the arrow points at a sector having a envelope, it is not rotated the second time).\u003cbr\u003eAfter the current envelope is chosen, it is taken off the table. If this envelope contains a question, this question is read out. If the envelope was at sector 13, the question to be read out is chosen randomly from the questions submitted through Internet. If the club team answers the question, it receives a point, otherwise the point comes to the other team. The game ends when some team has 6 points.\u003cbr\u003eYou are given the order of the envelopes and the probability that the club\u0027s team gives the correct answer to the question in each envelope and to the questions submitted through Internet. You have to determine the probability of each final score.\u003cbr\u003e\u003cdiv align\u003d\"left\" style\u003d\"margin-top: 1.0em;\"\u003e\u003cb\u003eInput\u003c/b\u003e\u003c/div\u003eThe first line of the input contains single integer \u003ci\u003eN\u003c/i\u003e (1≤ \u003ci\u003eN\u003c/i\u003e≤ 1000), which is the number of the questions submitted through Internet. The next 12 numbers are the probabilities of the club team answering the question in sectors 1 through 12. The next \u003ci\u003eN\u003c/i\u003e numbers are the probabilities of the club team answering the questions submitted through Internet. All the probabilities are between 0 and 1 and have at most three digits after the decimal point.\u003cbr\u003e\u003cdiv align\u003d\"left\" style\u003d\"margin-top: 1.0em;\"\u003e\u003cb\u003eOutput\u003c/b\u003e\u003c/div\u003eThe final score is represented by two numbers separated by a colon. The first number is the of the club team\u0027s points, the second is the viewers team\u0027s points. You have to output the 12 numbers with at least 3 digits after the decimal point, being the probabilities of the scores \u00276:0\u0027, \u00276:1\u0027, \u00276:2\u0027, \u00276:3\u0027, \u00276:4\u0027, \u00276:5\u0027, \u00275:6\u0027, \u00274:6\u0027, \u00273:6\u0027, \u00272:6\u0027, \u00271:6\u0027, \u00270:6\u0027 respectively.\u003cbr\u003e"}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n0.1\n0.1\n0.1\n0.1\n0.1\n0.1\n0.9\n0.9\n0.9\n0.9\n0.9\n0.9\n0.01\n0.9\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0.011\n0.035\n0.067\n0.099\n0.127\n0.150\n0.154\n0.132\n0.105\n0.072\n0.037\n0.012\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003cbr\u003e\n Novosibirsk SU Contest #2, by Novosibirsk Team #1"}}]}