#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string m = "CODEFORCES";
  int n = s.length();
  for (int i = 0; i < n; ++i) {
    for (int j = i; j <= n; ++j) {
      string t = "";
      for (int k = 0; k < n; ++k) {
        if (k >= i && k < j) {
          continue;
        }
        t += s[k];
      }
      if (t == m) {
        cout << "YES" << endl;
        exit(0);
      }
    }
  }
  cout << "NO" << endl;
}
