Chef calls a number *lucky* if it contains the digit 7 at least once. 

Given a number X, determine if it is a *lucky* number or not.

------ Input Format ------ 

- The first line contains a single integer T — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains an integer X — the number mentioned in the problem statement.

------ Output Format ------ 

For each test case, output YES if X is a lucky number. Otherwise, output NO.

You may print each character of YES and NO in uppercase or lowercase (for example, yes, yEs, Yes will be considered identical).

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤X ≤10^{9}$

----- Sample Input 1 ------ 
4
6
478
2090
77777

----- Sample Output 1 ------ 
NO
YES
NO
YES

----- explanation 1 ------ 
Test Case 1: The number $6$ is not lucky since it does not contain the digit $7$.

Test Case 2: The number $478$ is lucky since it contains the digit $7$ at least once.

Test Case 3: The number $2090$ is not lucky since it does not contain the digit $7$.

Test Case 4: The number $77777$ is lucky since it contains the digit $7$ at least once.

Difficulty: EASY

Starter code:

Solutions:
t = int(input())
sum = 0
for i in range(t):
	x = input()
	if '7' in x:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(0, t):
	x = int(input())
	c = 0
	s = str(x)
	for i in s:
		if i == '7':
			c += 1
	if c != 0:
		print('YES')
	else:
		print('NO')


T = int(input())
for t in range(T):
	X = input()
	if '7' in X:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	n = input()
	if '7' in n:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	a = str(input())
	b = len(a)
	for j in a:
		if j == '7':
			print('YES')
			break
		else:
			b -= 1
			if b <= 0:
				print('NO')
				break


t = int(input())
for i in range(t):
	x = input()
	k = 0
	for j in x:
		if int(j) == 7:
			k = 1
			break
	if k == 0:
		print('NO')
	elif k == 1:
		print('YES')


t = int(input())
while t > 0:
	str = input()
	if '7' in str:
		print('YES')
	else:
		print('NO')
	t = t - 1


for _ in range(int(input())):
	x = input()
	if '7' in x:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	x = int(input())
	a = []
	while x > 0:
		digit = int(x % 10)
		a.append(digit)
		x = int(x / 10)
	if 7 in a:
		print('YES')
	else:
		print('NO')


def digit(x):
	temp = x
	while x != 0:
		res = x % 10
		if res == 7:
			return True
		x = x // 10
	return False
for i in range(int(input())):
	x = int(input())
	if digit(x):
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	s = input()
	k = s.count('7')
	if k > 0:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	x = int(input())
	flag = 'NO'
	while x > 0:
		r = x % 10
		x = x // 10
		if r == 7:
			flag = 'YES'
			break
	print(flag)


t = int(input())
for i in range(t):
	x = int(input())
	s = str(x)
	if '7' in s:
		print('YES')
	else:
		print('NO')


a = int(input())
for i in range(a):
	b = input()
	if '7' in b:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	X = input()
	flag = True
	for i in range(len(X)):
		if X[i] == '7':
			flag = False
			continue
		else:
			pass
	if flag == False:
		print('YES')
	else:
		print('NO')


s = int(input())
for a in range(s):
	num = input()
	if '7' in num:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	A = input()
	if '7' in A:
		print('YES')
	else:
		print('NO')


t = int(input())
for n in range(0, t):
	str = input()
	flag = False
	for i in str:
		if i == '7':
			flag = True
	if flag == True:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	x = input()
	y = 0
	for i in range(len(x)):
		for z in x:
			if z == '7':
				y += 1
	if y > 0:
		print('YES')
	else:
		print('NO')


def main():
	t = int(input())
	for i in range(t):
		num = input()
		flage = False
		for i in num:
			if i == '7':
				flage = True
				break
		if flage:
			print('YES')
		else:
			print('NO')
main()


for _ in range(int(input())):
	x = list(map(int, input()))
	a = 0
	for i in x:
		if i == 7:
			a += 1
	if a >= 1:
		print('YES')
	else:
		print('NO')


testcase = int(input())
while testcase > 0:
	x = input()
	print('YES') if '7' in x else print('NO')
	testcase -= 1


for j in range(int(input())):
	h = input()
	if '7' in h:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	x = int(input())
	a = str(x)
	count = 0
	y = len(a)
	while y > 0:
		if x % 10 == 7:
			count = 1
			break
		else:
			x = int(x / 10)
			y = y - 1
	if count == 1:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	x = str(input())
	flg = 'NO'
	for i in x:
		if i == '7':
			flg = 'YES'
			break
	print(flg)