{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eDon and his friends had some sort of code word to describe the girls who pass towards their class.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eAnitha passed - killer told.. “Dude, 5 2 is going”\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eChitra passed - Jumbo told.. “Dude, 6 4 is awesome”\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eDivya passed - Baabi told.. “Machi 1 6 is my dream girl”\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eGirls couldn’t understand those code words. To crack the code word, girls decide to record all the code words and the girls\u0027 name whenever they call.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eThe silencer in the class watched all these and got angry. He mugged up all the code words, went to teacher and complained about the naughty boys and naughty girls.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eTeacher\u003c/strong\u003e : Who is the girl with code word 1 6?\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eSilencer\u003c/strong\u003e: Divya\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eTeacher\u003c/strong\u003e: Who is the girl with code word\u0026nbsp; 5 2?\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eSilencer\u003c/strong\u003e: Anitha\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eTeacher\u003c/strong\u003e: What is the code word for me??\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-weight: normal;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eSilencer\u003c/strong\u003e: (puzzled)\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eNow you have to pretend that you are the Silencer to solve this problem. Record the code words and answer the questions the teacher asks you.(She may ask the same question any number of times)\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cstrong\u003eNote: There can be any number of code words for a same girl. If there exist more than one girl for a same code word, then that code word belongs to the latest girl.\u0026nbsp;\u003c/strong\u003e\u003cbr\u003e\u0026nbsp;\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: medium;\"\u003e\u003cstrong\u003e\u003cspan style\u003d\"font-size: small;\"\u003eInput Specification:\u003c/span\u003e\u003c/strong\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eThe first line contains an integer n, the number of figures. Then in each of the next n lines there will be 2 integers and a figure name.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eAfter that there will be an integer t, the number of test cases. For each test case, there will be two integers representing the code word. Print the figure’s name corresponding to the code word.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: medium;\"\u003e\u003cstrong\u003e\u003cspan style\u003d\"font-size: small;\"\u003eOutput Specification:\u003c/span\u003e\u003c/strong\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eFor each test case output the figure name.\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: medium;\"\u003e\u003cstrong\u003e\u003cspan style\u003d\"font-size: small;\"\u003eInput Constraints:\u003c/span\u003e\u003c/strong\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e1\u0026lt;\u003dn\u0026lt;\u003d100000\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e1\u0026lt;\u003dt\u0026lt;\u003d100000\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e-1000000\u0026lt;\u003dcode1, code2\u0026lt;\u003d1000000\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003eThe figure’s name will not exceed 20 characters\u003cspan style\u003d\"font-weight: normal;\"\u003e\u0026nbsp;\u003c/span\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: small;\"\u003e\u003cbr\u003e\u003c/span\u003e\u003c/p\u003e \n \u003cp style\u003d\"text-align: left;\"\u003e\u003cspan style\u003d\"font-size: medium;\"\u003e\n\u003c/div\u003e"}},{"title":"Example","value":{"format":"HTML","content":"\u003ctable border\u003d\"1px solid\" width\u003d\"100%\" cellpadding\u003d\"4px\" cellspacing\u003d\"0px\"\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003cth width\u003d\"50%\"\u003eSample Input\u003c/th\u003e\n \u003cth width\u003d\"50%\"\u003eSample Output\u003c/th\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd valign\u003d\"top\"\u003e\n \u003ccode\u003e6\u003cbr\u003e5 2 Anitha\u003cbr\u003e6 4 Yamuna\u003cbr\u003e6 4 Chitra\u003cbr\u003e1 6 Divya\u003cbr\u003e-2 0 Teacher\u003cbr\u003e7 4 Anitha\u003cbr\u003e2\u003cbr\u003e-2 0\u003cbr\u003e6 4\u003cbr\u003e\u003c/code\u003e\n \u003c/td\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003eTeacher\u003cbr\u003eChitra\u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e"}}]}