#include <bits/stdc++.h>
using namespace std;

int main() {
int t;
cin >> t;
while(t--)
{
		string s = "codeforces";
		int d=0;
	char ch;
	cin >> ch;
	for(int i=0;i<s.size();i++ )
	{
		if(s[i]==ch)
		d++;
	}
	if(d>0)
	{
		cout << "YES" << endl;
	}
}
	return 0;
}