{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"### Read problems statements in [Mandarin Chinese](https://www.codechef.com/download/translated/COOK131/mandarin/SHOEFIT.pdf), [Russian](https://www.codechef.com/download/translated/COOK131/russian/SHOEFIT.pdf), [Vietnamese](https://www.codechef.com/download/translated/COOK131/vietnamese/SHOEFIT.pdf) and [Bengali](https://www.codechef.com/download/translated/COOK131/bengali/SHOEFIT.pdf) as well. \n\nYou have three shoes of the same size lying around. Each shoe is either a left shoe (represented using $0$) or a right shoe (represented using $1$). Given $A$, $B$, $C$, representing the information for each shoe, find out whether you can go out now, wearing one left shoe and one right shoe."}},{"title":"Input Format","value":{"format":"MD","content":"- The first line contains an integer $T$, the number of test cases. Then the test cases follow.\n- Each test case contains a single line of input, three integers $A$, $B$, $C$.\n"}},{"title":"Output Format","value":{"format":"MD","content":"For each test case, output in a single line the answer: $1$ if it\u0027s possible to go out with a pair of shoes and $0$ if not.\n"}},{"title":"Constraints","value":{"format":"MD","content":"- $1 \\leq T \\leq 8$\n- $0 \\leq A, B, C \\leq 1$\n"}},{"title":"Sample 1","value":{"format":"MD","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\u003e3\n0 0 0\n0 1 1\n1 0 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\n1\n1\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n**Test Case $1$:** Since there\u0027s no right shoe, it\u0027s not possible to go out with a pair of shoes.\n\n**Test Case $2$:** It\u0027s possible to go out with a pair of shoes wearing the first and last shoes.\n\n**Test Case $3$:** It\u0027s possible to go out with a pair of shoes wearing the first and second shoes."}}]}