Given three digits A A , B B , and C C of the lottery ticket, tell whether Chef wins something or not? Input Format First line will contain T T , the number of test cases. Then the test cases follow. Each test case contains a single line of input, three space separated integers A , B , C A , B , C . Output Format For each testcase, output in a single line answer "YES" if Chef wins a positive amount with the lottery and "NO" if not. You may print each character of the string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical). Constraints 1 ≤ T ≤ 1000 1 ≤ T ≤ 1000 0 ≤ A , B , C ≤ 9 0 ≤ A , B , C ≤ 9 Sample Input 1 3 0 0 0 7 8 9 2 7 7 Sample Output 1 NO YES YES Explanation Test Case 1 1 : Since no digit is equal to 7 7 , Chef fails to win any amount in the lottery. Test Case 2 2 : Since the first digit is equal t...
The Immortal Knowledge