There is a string $s$ of length $3$, consisting of uppercase and lowercase English letters. Check if it is equal to "YES" (without quotes), where each letter can be in any case. For example, "yES", "Yes", "yes" are all allowable.


-----Input-----

The first line of the input contains an integer $t$ ($1 \leq t \leq 10^3$) — the number of testcases.

The description of each test consists of one line containing one string $s$ consisting of three characters. Each character of $s$ is either an uppercase or lowercase English letter.


-----Output-----

For each test case, output "YES" (without quotes) if $s$ satisfies the condition, and "NO" (without quotes) otherwise.

You can output "YES" and "NO" in any case (for example, strings "yES", "yes" and "Yes" will be recognized as a positive response).


-----Examples-----

Input
10
YES
yES
yes
Yes
YeS
Noo
orZ
yEz
Yas
XES
Output
YES
YES
YES
YES
YES
NO
NO
NO
NO
NO


-----Note-----

The first five test cases contain the strings "YES", "yES", "yes", "Yes", "YeS". All of these are equal to "YES", where each character is either uppercase or lowercase.

Difficulty: EASY

Solutions:
test = int(input())
for i in range(1, test + 1):
	a = input().lower()
	if a == 'yes':
		print('YES')
	else:
		print('NO')


def main():
	T = int(input())
	for _ in range(T):
		S = input()
		print('YES' if S.lower() == 'yes' else 'NO')
main()


for i in range(int(input())):
	print('YES' if input().lower() == 'yes' else 'NO')


t = int(input())
for _ in range(t):
	s = input().lower()
	if s == 'yes':
		print('YES')
	else:
		print('NO')


t = int(input())
for tt in range(t):
	if input().lower() == 'yes':
		print('YES')
	else:
		print('NO')


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


t = int(input())
ans = []
for i in range(t):
	n = input()
	if n.lower() == 'yes':
		ans.append('YES')
	else:
		ans.append('NO')
for i in ans:
	print(i)


for h in range(int(input())):
	s = input()
	if s[0] in ['Y', 'y'] and s[1] in ['E', 'e'] and (s[2] in ['S', 's']):
		print('YES')
	else:
		print('NO')


def res():
	for x in range(int(input())):
		s = input()
		if s.lower() == 'yes':
			print('YES')
		else:
			print('NO')
res()


t = int(input())
m = []
for i in range(t):
	s = input()
	m.append(s)
for i in m:
	if i.lower() == 'yes':
		print('YES')
	else:
		print('NO')


import sys
sys.setrecursionlimit(10 ** 6)
for _ in range(int(input())):
	s = input().upper()
	if s == 'YES':
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	s = input()
	if s.upper() == 'YES':
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	x = str(input()).upper()
	if x == 'YES':
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	s = str(input())
	if s.lower() == 'yes':
		print('YES')
	else:
		print('NO')


def func(s):
	if s.upper() == 'YES':
		return 'YES'
	else:
		return 'NO'

def main():
	t = int(input())
	for i in range(t):
		s = input()
		ans = func(s)
		print(ans)
main()


t = int(input())
while t:
	s = input().lower()
	if s == 'yes':
		print('YES')
	else:
		print('NO')
	t -= 1


for _ in range(int(input())):
	if 43443453 == 4545434545453454545:
		print('Tanmay')
	s = input()
	if s.upper() == 'YES':
		print('YES')
	else:
		print('NO')


def lo(fl):
	if fl:
		return 'YES'
	else:
		return 'NO'

def kil_(a):
	return lo(a.lower() == 'yes')

def kil(a):
	t = int(input())
	A = ''
	for i in range(t):
		A += kil_(a()) + '\n'
	print(A[:-1])
kil(input)


t = int(input())
for i in range(t):
	s = input()
	if 'yes' == s.casefold():
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	s = input()
	if (s[0] == 'Y' or s[0] == 'y') and (s[1] == 'E' or s[1] == 'e') and (s[2] == 'S' or s[2] == 's'):
		print('YES')
	else:
		print('NO')


n = int(input())
answer = []
for i in range(n):
	stroka = input()
	stroka = stroka.upper()
	if stroka == 'YES':
		answer.append('YES')
	else:
		answer.append('NO')
for value in answer:
	print(value)


def is_yes(s):
	if s.lower() == 'yes':
		return 'YES'
	return 'NO'
t = int(input())
for _ in range(t):
	print(is_yes(input()))


import sys
t = int(sys.stdin.readline().rstrip())
for _ in range(t):
	now_str = sys.stdin.readline().rstrip()
	if now_str.lower() == 'yes':
		print('YES')
	else:
		print('NO')


t = int(input())
for _ in range(0, t):
	st = input()
	if st.lower() == 'yes':
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	m = input()
	v = m.upper()
	if v == 'YES':
		print('YES')
	else:
		print('NO')


for case in range(int(input())):
	s = input()
	c = 'yes'
	s = s.lower()
	if s == c:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	print(['NO', 'YES'][input().lower() == 'yes'])


def check_yes(s):
	if s.upper() == 'YES':
		print('YES')
	else:
		print('NO')
n = int(input())
for _ in range(n):
	s = input().strip()
	check_yes(s)


for s in [*open(0)][1:]:
	print('YNEOS'[s.title() != 'Yes\n'::2])


ans = []
for _ in range(int(input())):
	ans += ['YES' if input().lower() == 'yes' else 'NO']
print(*ans, sep='\n')


a = int(input())
for n in range(a):
	a = input().lower()
	if a == 'yes':
		print('YES')
	else:
		print('NO')


t = int(input())
for l in range(t):
	strm = input()
	strm = strm.upper()
	if strm == 'YES':
		print('YES')
	else:
		print('NO')


n = int(input())
for _ in range(n):
	s = input()
	if s[0] != 'Y' and s[0] != 'y':
		print('NO')
	elif s[1] != 'E' and s[1] != 'e':
		print('NO')
	elif s[2] != 'S' and s[2] != 's':
		print('NO')
	else:
		print('YES')


def resultat(s):
	if s.upper() == 'YES':
		print('YES')
	else:
		print('NO')

def test(x):
	for i in range(x):
		x = input()
		resultat(x)
t = int(input())
test(t)


t = int(input())
a = 1
m = {'Y', 'y'}
n = {'E', 'e'}
p = {'S', 's'}
while a <= t:
	s = str(input())
	if s[0] in m and s[1] in n and (s[2] in p):
		print('YES')
	else:
		print('NO')
	a = a + 1


def yes_no(l):
	for i in l:
		if i.upper() == 'YES':
			print('YES')
		else:
			print('NO')
t = int(input())
l = []
for i in range(t):
	s = input()
	l.append(s)
yes_no(l)


T = int(input())
for tc in range(T):
	n = input()
	s = n.upper()
	if s == 'YES':
		print('YES')
	else:
		print('NO')


n = int(input())
data = []
results = []
i = 0
while i < n:
	msg = str(input())
	data.append(msg)
	if data[i].upper() == 'YES':
		results.append('YES')
	else:
		results.append('NO')
	i = i + 1
for result in results:
	print(result)


n = int(input())
results = []
for i in range(n):
	if input().upper() == 'YES':
		results.append('YES')
	else:
		results.append('NO')
for i in results:
	print(i)


t = int(input())
for i in range(t):
	s = input()
	k = s.lower()
	if k == 'yes':
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	s2 = 'yes'
	S = input()
	S = S.lower()
	if S == s2:
		print('YES')
	else:
		print('NO')


tc = int(input())
for _ in range(tc):
	print('YES' if input().lower() == 'yes' else 'NO')


n = int(input())
for x in range(n):
	s = input().lower()
	if s == 'yes':
		print('YES')
	else:
		print('NO')


from sys import stdin
input = stdin.readline
t = int(input())
out = []
for _ in range(t):
	string = input().strip()
	if string.lower() == 'yes':
		out.append('YES\n')
	else:
		out.append('NO\n')
print(''.join(out))


e = int(input())
f = []
for i in range(e):
	m = input()
	a = m[0]
	b = m[1]
	c = m[2]
	r = 0
	if a == 'y' or a == 'Y':
		r = 1
	if b == 'e' or b == 'E':
		r = r + 1
	if c == 's' or c == 'S':
		r = r + 1
	if r == 3:
		b = 'YES'
	else:
		b = 'NO'
	f.append(b)
for i in range(e):
	print(f[i])


t = int(input())
z = 0
list = []
if 1 <= t <= 1000:
	while z < t:
		x = str(input())
		q = x.upper()
		if len(x) == 3:
			if q == 'YES':
				list.append('YES')
			else:
				list.append('NO')
		z += 1
	for k in list:
		print(k)


a = int(input())
ans = ['YES', 'yES', 'yes', 'Yes', 'YeS', 'yEs', 'yeS', 'YEs']
for i in range(a):
	b = input()
	if b in ans:
		print('YES')
	else:
		print('NO')


print('\n'.join((('NO', 'YES')[input().lower() == 'yes'] for _ in range(int(input())))))