#include <bits/stdc++.h>
using namespace std;
string cf = "CODEFORCES";
int main() {
  string a;
  cin >> a;
  if (a.size() < cf.size()) {
    cout << "NO\n";
    return 0;
  }
  for (int i = 0; i <= (int)cf.size(); i++) {
    string tmp =
        a.substr(0, i) + a.substr(a.size() - cf.size() + i, cf.size() - i);
    if (tmp == cf) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
