{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\u003ci\u003eThe Moon card shows a large, full moon in the night’s sky, positioned between two large towers. The Moon is a symbol of intuition, dreams, and the unconscious. The light of the moon is dim, compared to the sun, and only vaguely illuminates the path to higher consciousness which winds between the two towers.\u003c/i\u003e\u003cbr\u003e\u003cbr\u003eRandom Six is a FPS game made by VBI(Various Bug Institution). There is a gift named \"Beta Pack\". Mr. K wants to get a beta pack. Here is the rule.\u003cbr\u003eStep 0. Let initial chance rate $q$ \u003d 2%.\u003cbr\u003eStep 1. Player plays a round of the game with winning rate $p%$.\u003cbr\u003eStep 2. If the player wins, then will go to Step 3 else go to Step 4.\u003cbr\u003eStep 3. Player gets a beta pack with probability $q$. If he doesn’t get it, let $q$ \u003d min(100%, $q$ + 2%) and he will go to Step 1.\u003cbr\u003eStep 4. Let $q$ \u003d min(100%, $q$ + 1.5%) and goto Step 1.\u003cbr\u003eMr. K has winning rate $p$% , he wants to know what’s the expected number of rounds before he needs to play.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line contains testcase number $T$ ($T$ ≤ 100). For each testcase the first line contains an integer $p$ (1 ≤ $p$ ≤ 100)."}},{"title":"Output","value":{"format":"HTML","content":"For each testcase print \u003cb\u003eCase\u003c/b\u003e $i$ : and then print the answer in one line, with absolute or relative error not exceeding $10^6$."}},{"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\u003e2\r\n50\r\n100\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 12.9933758002\r\nCase 2: 8.5431270393\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}