# lucky no codechef problem in python
for _ in range(int(input())):
a,b,c = list(map(int,input().split()))
if 7 in (a,b,c):
print('Yes')
else:
print("No")
t=int(input())
a=str(4)
for i in range(t):
x=str(input())
count=0
for j in x:
if j==a:
count=count+1
print(count)
------------------------------------------------------------------------------------------
//solution<1>:
------------------------------------------------------------------------------------------
#include<iostream>
#include<string>
using namespace std;
int main()
{
int t, n, count;
cin >> t;
for (int i = 0; i < t; i++)
{
cin >> n;
string s = to_string(n);
count = 0;
for (int i = 0; i < s.length(); i++)
{
if (s[i] == '4')
count++;
}
cout << count << "
";
}
return 0;
}
------------------------------------------------------------------------------------------
//solution<2>:
------------------------------------------------------------------------------------------
#include<iostream>
using namespace std;
int main()
{
int t, n, count, x;
cin >> t;
for (int i = 0; i < t; i++)
{
cin >> n;
count = 0;
while(n!=0)
{
x = n % 10;
if (x == 4)
{
count++;
}
n /= 10;
}
cout << count << "
";
}
return 0;
}