{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eYou are given a string consisting of parentheses\u0026nbsp;\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e()\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e\u0026nbsp;and\u0026nbsp;\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e[]\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e. A string of this type is said to be\u0026nbsp;\u003c/span\u003e\u003cem style\u003d\"color: rgb(0, 0, 0); \"\u003ecorrect\u003c/em\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e:\u003c/span\u003e\u003cbr /\u003e\r\n\t\u003cbr /\u003e\r\n\t\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e(1)\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eif it is the empty string\u003c/span\u003e\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e(2)\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eif A and B are correct, AB is correct,\u003c/span\u003e\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e(3)\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eif A is correct,\u0026nbsp;\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e(\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eA\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e)\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e\u0026nbsp;and\u0026nbsp;\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e[\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003eA\u003c/span\u003e\u003ctt style\u003d\"color: rgb(0, 0, 0); \"\u003e]\u003c/tt\u003e\u003cspan style\u003d\"color: rgb(0, 0, 0); \"\u003e\u0026nbsp;is correct.\u003c/span\u003e\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cp\u003e\r\n\tThe file contains a positive integer\u0026nbsp;\u003ci\u003en\u003c/i\u003e\u0026nbsp;and a sequence of\u0026nbsp;\u003ci\u003en\u003c/i\u003e\u0026nbsp;strings of parentheses\u0026nbsp;\u003ctt\u003e()\u003c/tt\u003e\u0026nbsp;and\u0026nbsp;\u003ctt\u003e[]\u003c/tt\u003e, one string a line.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tA sequence of\u0026nbsp;\u003ctt\u003eYes\u003c/tt\u003e\u0026nbsp;or\u0026nbsp;\u003ctt\u003eNo\u003c/tt\u003e\u0026nbsp;on the output file.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cpre\u003e\r\n3\r\n([])\r\n(([()])))\r\n([()[]()])()\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cpre\u003e\r\nYes\r\nNo\r\nYes\u003c/pre\u003e"}}]}