Given a lowercase Latin character (letter), check if it appears in the string ${codeforces}$.


-----Input-----

The first line of the input contains an integer $t$ ($1 \leq t \leq 26$) — the number of test cases.

The only line of each test case contains a character $c$ — a single lowercase Latin character (letter).


-----Output-----

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

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


-----Examples-----

Input
10
a
b
c
d
e
f
g
h
i
j
Output
NO
NO
YES
YES
YES
YES
NO
NO
NO
NO


-----Note-----

None

Difficulty: EASY
Tags: String algorithms

Implementation

Starter code:

Solutions:
import math

def im():
	return map(int, input().split())

def il():
	return list(map(int, input().split()))

def ii():
	return int(input())
same = lambda s: s.count(s[0]) == len(s)

def solve():
	a = il()
t = ii()
for _ in range(t):
	c = input()
	if c in 'codeforces':
		print('YES')
	else:
		print('NO')


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


import sys
t = int(sys.stdin.readline())
s = set('codeforces')
for _ in range(t):
	c = sys.stdin.readline().strip()
	print('YES' if c in s else 'NO')


f = 'codeforces'
n = int(input())
for _ in range(n):
	t = input()
	if t in f:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	n = str(input())
	string = 'codeforces'
	if n in string:
		print('YES')
	else:
		print('NO')


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


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


for tests in range(int(input())):
	n = input()
	s = 'codeforces'
	if n in s:
		print('YES')
	else:
		print('NO')


s = 'codeforces'
t = int(input())
for k in range(0, t):
	x = input()
	if x in s:
		print('YES')
	else:
		print('NO')


letters = set('codeforces')
tests = int(input())
for _ in range(tests):
	if input() in letters:
		print('YES')
	else:
		print('NO')


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


t = int(input().strip())
for _ in range(t):
	c = input().strip()
	if c in 'codeforces':
		print('YES')
	else:
		print('NO')


x = ['c', 'o', 'd', 'e', 'f', 'r', 's']
n = int(input())
for i in range(n):
	i = input()
	if i in x:
		print('YES')
	else:
		print('NO')


string = 'codfrces'
for i in range(int(input())):
	c = input()
	if c in string:
		print('YES')
	else:
		print('NO')


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


size = int(input())
lst = 'codeforces'
lst = set(lst)
for i in range(size):
	c = input()
	if c in lst:
		print('YES')
	else:
		print('NO')


import sys
input = sys.stdin.readline
t = int(input())
for i in range(t):
	s = input()
	c = list(s[:len(s) - 1])
	string = 'codeforces'
	string = list(string)
	for i in string:
		if c[0] == i:
			out = 'YES'
			break
		out = 'NO'
	print(out)


import sys
from math import *
from collections import defaultdict, deque
input = sys.stdin.readline
mod = 10 ** 9 + 7
INF = 1061109567
N = int(2 * 10 ** 5 + 5)
LINF = 4557430888798830399

def solve():
	a = input()
	a = a[0]
	if a == 'c' or a == 'o' or a == 'd' or (a == 'e') or (a == 'f') or (a == 'r') or (a == 's'):
		print('YES')
	else:
		print('NO')
T = int(input())
for t in range(T):
	solve()


t = int(input())
while t:
	c = input()
	if c in 'codeforces':
		print('YES')
	else:
		print('NO')
	t -= 1


t = int(input())
l = ['c', 'o', 'd', 'e', 'f', 'r', 'c', 's']
for i in range(t):
	ch = input()
	if ch in l:
		print('YES')
	else:
		print('NO')


n = int(input())
codeforces = 'codeforces'
for i in range(n):
	c = input().strip()
	if c in codeforces:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	bruce = input('')
	banner = 'codeforces'
	if bruce in banner:
		print('YES')
	else:
		print('NO')


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


t = int(input())
for i in range(t):
	letter = input()
	for j in 'codeforces':
		if letter == j:
			print('YES')
			break
	else:
		print('NO')


t = int(input().strip())
x = 'codefrs'
for _ in range(t):
	a = input().strip()
	if a in x:
		print('YES')
	else:
		print('NO')


t = int(input())
s = 'codeforces'
for i in range(0, t):
	st = input()
	if st in s:
		print('YES')
	else:
		print('NO')


testcases = int(input())
for t in range(testcases):
	string = input()
	if string in 'codeforces':
		print('YES')
	else:
		print('NO')


n = int(input())
for _ in range(n):
	c = input()
	if c in 'codeforces':
		print('YES')
	else:
		print('NO')


def exe():
	l = ['c', 'o', 'd', 'e', 'f', 'r', 's']
	if c in l:
		return 'YES'
	return 'NO'
for i in range(int(input())):
	c = input()
	print(exe())


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


for (c, _) in [*open(0)][1:]:
	print('NYOE S'[c in 'cdfores'::2])


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


n = int(input())
li = []
uo = 'codeforces'
for i in range(n):
	inp = input()
	if inp in uo:
		print('YES')
	else:
		print('NO')


b = ['c', 'o', 'd', 'e', 'f', 'r', 's']
for i in range(int(input())):
	a = input()
	if a in b:
		print('YES')
	else:
		print('NO')


w = 'codeforces'
n = int(input())
for _ in range(n):
	l = input()
	if l in w:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	s_1 = input()
	s_2 = 'codeforces'
	for i in s_1:
		if i in s_2:
			print('YES')
		else:
			print('NO')


k = int(input())
for i in range(k):
	gg = input()
	if gg in 'CODEFORCEScodeforces':
		print('YES')
	else:
		print('NO')


inputs = []
for i in range(int(input())):
	inputs.append(input())
for inp in inputs:
	if inp in 'codeforces':
		print('YES')
	else:
		print('NO')


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


t = int(input())
while t > 0:
	s = 'codeforces'
	s1 = input()
	if s1 in s:
		print('YES')
	else:
		print('NO')
	t -= 1


n = int(input())
cmp = 'codeforces'
while n > 0:
	c = input()
	if c in cmp:
		print('YES')
	else:
		print('NO')
	n -= 1


t = int(input())
ss = 'codeforces'
while t:
	t -= 1
	s = input()
	if s in ss:
		print('YES')
	else:
		print('NO')


def in_codeforces(char):
	if char in 'codeforces':
		return 'YES'
	return 'NO'
for _ in range(int(input())):
	print(in_codeforces(input()))