#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  string s, word = "CODEFORCES";
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < s.size(); j++) {
      string cur;
      for (int x = 0; x < s.size(); x++) {
        if (x >= i && x <= j) continue;
        cur += s[x];
      }
      if (cur == word) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
