#include <bits/stdc++.h>
using namespace std;
void solve() {
  string a;
  cin >> a;
  long long n = a.length();
  if (n < 10) {
    cout << "NO" << endl;
    return;
  }
  string b = "CODEFORCES";
  if (a.substr(0, 10) == b || a.substr(n - 10, 10) == b) {
    cout << "YES" << endl;
    return;
  }
  for (long long i = 0; i < n; i++) {
    for (long long j = i + 1; j < n; j++) {
      string c = a.substr(0, i + 1) + a.substr(j);
      if (c == b) {
        cout << "YES" << endl;
        return;
      }
    }
  }
  cout << "NO" << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
}
