{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\n\u003ch4\u003eMeena \u0026 Raju Playing with marbles\u003c/h4\u003e\n\u003cspan style\u003d\"background-color: white; \"\u003e\n\u003ccenter\u003e\u003cimg height\u003d\"250px\" width\u003d\"320px\" src\u003d\"https://assetsds.cdnedge.bluemix.net/sites/default/files/styles/very_big_1/public/feature/images/op_2_new_0.jpg?itok\u003dIUZEjPfi\"\u003e \u003c/center\u003e\n\u003cp\u003e\n\tRaju and Meena love to play with Marbles. They have got a lot of\nmarbles with numbers written on them. At the beginning, Raju would\nplace the marbles one after another in ascending order of the numbers\nwritten on them. Then Meena would ask Raju to find the first marble\nwith a certain number. She would count 1...2...3. Raju gets one point\nfor correct answer, and Meena gets the point if Raju fails. After some\nfixed number of trials the game ends and the player with maximum\npoints wins. Today it’s your chance to play as Raju. Being the smart\nkid, you’d be taking the favor of a computer. But don’t underestimate\nMeena, she had written a program to keep track how much time you’re\ntaking to give all the answers. So now you have to write a program,\nwhich will help you in your role as Raju.\u003c/p\u003e\n\u003c/span\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv\u003e\n\tThere can be multiple test cases. Total no of test cases is less than 65. Each test case consists begins with 2 integers:\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eN\u003c/i\u003e\u003c/span\u003e\u0026nbsp;the number of marbles and\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eQ\u003c/i\u003e\u003c/span\u003e\u0026nbsp;the number of queries Mina would make. The next\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eN\u003c/i\u003e\u003c/span\u003e\u0026nbsp;lines would contain the numbers written on the\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eN\u003c/i\u003e\u003c/span\u003e\u0026nbsp;marbles. These marble numbers will not come in any particular order. Following\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eQ\u003c/i\u003e\u003c/span\u003e\u0026nbsp;lines will have\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eQ\u003c/i\u003e\u003c/span\u003e\u0026nbsp;queries. Be assured, none of the input numbers are greater than 10000 and none of them are negative.\u003c/div\u003e\n\u003cdiv\u003e\n\t\u003cp\u003e\n\t\tInput is terminated by a test case where\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eN\u003c/i\u003e\u0026nbsp;\u003d 0\u003c/span\u003e\u0026nbsp;and\u0026nbsp;\u003cspan class\u003d\"MATH\" style\u003d\"font-family: \u0027Century Schoolbook\u0027, serif;\"\u003e\u003ci style\u003d\"font-weight: bold;\"\u003eQ\u003c/i\u003e\u0026nbsp;\u003d 0\u003c/span\u003e.\u003c/p\u003e\n\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\n\tFor each test case output the serial number of the case.\u003c/p\u003e\n\u003cp\u003e\n\tFor each of the queries, print one line of output. The format of this line will depend upon whether or not the query number is written upon any of the marbles. The two different formats are described below:\u003c/p\u003e\n\u003cp\u003e\n\t\u0026nbsp;\u003c/p\u003e\n\u003cul\u003e\n\t\u003cli\u003e\n\t\t`\u003ctt\u003e\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ex\u003c/i\u003e\u003c/span\u003e\u0026nbsp;found at\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ey\u003c/i\u003e\u003c/span\u003e\u003c/tt\u003e\u0026#39;, if the first marble with number\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ex\u003c/i\u003e\u003c/span\u003e\u0026nbsp;was found at position\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ey\u003c/i\u003e\u003c/span\u003e. Positions are numbered\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e1, 2,...,\u0026nbsp;\u003ci\u003eN\u003c/i\u003e\u003c/span\u003e.\u003c/li\u003e\n\t\u003cli\u003e\n\t\t`\u003ctt\u003e\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ex\u003c/i\u003e\u003c/span\u003e\u0026nbsp;not found\u003c/tt\u003e\u0026#39;, if the marble with number\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003ex\u003c/i\u003e\u003c/span\u003e\u0026nbsp;is not present.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\n\tLook at the output for sample input for details.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\n4 1\n2\n3\n5\n1\n5\n5 2\n1\n3\n3\n3\n1\n2\n3\n0 0\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\nCASE# 1:\n5 found at 4\nCASE# 2:\n2 not found\n3 found at 3\u003c/pre\u003e"}}]}