CF1791A.Codeforces Checking

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Codeforces Checking

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

Input

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

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

Output

For each test case, output "YES" (without quotes) if cc 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).

Samples

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

在线编程 IDE

建议全屏模式获得最佳体验