Question Paper Selection
Time Limit: 1 sec
The Problem
You all know about board exams. There are 9 questions given and you have to answer 6 of them. When the question paper selected teachers select them as students can give at least 6 answers.
All the teachers give their question paper for selection. Mr. Rahman is the final selector. Your task is to help Mr. Rahman select such question paper where at least 6 answers can be given.
The Input
The first line contains a single integer N (N <= 100). N following lines contains 9 integers either 0 or 1.
The Output
For each N line print “Yes” if 6 questions can be answered or “No” if not in a separate line.
Sample Input
3
1 1 1 1 1 1 1 1 1
1 1 1 0 0 0 0 0 0
1 1 1 0 0 0 1 1 1
Sample Output
Case 1: Yes
Case 2: No
Case 3: Yes
Problem Setter: Samia Safa Ahmed