#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string aux = "CODEFORCES";
  int i = 0;
  cin >> s;
  if (s.length() < aux.length())
    cout << "NO" << endl;
  else {
    while (aux[i] == s[i] && i < aux.length()) i++;
    if (i == aux.length())
      cout << "YES" << endl;
    else {
      int j;
      for (j = i; j < aux.length(); j++) {
        if (aux[j] != s[s.length() - aux.length() + j]) break;
      }
      if (j == aux.length())
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
