{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"You are in a reality show, and the show is way too real that they threw you into an island. Only two kinds of animals are on the island, the tigers and the deer. Though unfortunate but the truth is that, each day exactly two animals meet each other. So, the outcomes are one of the following:\n\n1. If you and a tiger meet, the tiger will surely kill you.\n2. If a tiger and a deer meet, the tiger will eat the deer. \n3. If two deer meet, nothing happens. \n4. If you meet a deer, you may or may not kill the deer (depends on you). \n5. If two tigers meet, they will fight each other till death. So, both will be killed.\n\nIf someday you are sure that you will not be killed, you leave the island immediately and thus win the reality show. And you can assume that two animals in each day are chosen uniformly at random from the set of living creatures on the island (including you).\n\nNow you want to find the expected probability of you winning the game. Since in outcome (4), you can make your own decision, you want to maximize the probability."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026#8804; 200)**, denoting the number of test cases.\n\nEach case starts with a line containing two integers **t (0 \u0026#8804; t \u0026#8804; 1000)** and **d (0 \u0026#8804; d \u0026#8804; 1000)** where **t** denotes the number of tigers and **d** denotes the number of deer."}},{"title":"Output","value":{"format":"MD","content":"For each case, print the case number and the expected probability. Errors less than **10\u003csup\u003e-6\u003c/sup\u003e** will be ignored."}},{"title":"Sample","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\u003e4\n0 0\n1 7\n2 0\n0 10\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 1\nCase 2: 0\nCase 3: 0.3333333333\nCase 4: 1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}