#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s, cmp;
  cin >> s;
  cmp = "CODEFORCES";
  int len = s.length(), clen = cmp.length();
  bool ans = false;
  if (len >= clen) {
    for (int i = 0; i <= clen; i++) {
      string a, b;
      a = s.substr(0, i);
      b = s.substr(len - clen + i);
      if (a + b == cmp) {
        ans = true;
        break;
      }
    }
  }
  if (ans)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
