#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
const int inf = 1e9;
const int MOD = 1e9 + 7;
const int nax = 1000000 + 10;
int n, arr[nax];
int main() {
  ios::sync_with_stdio(0);
  string s;
  cin >> s;
  n = s.length();
  s = "#" + s;
  string c = "CODEFORCES";
  for (int i = 1; i <= n - 2; i++) {
    for (int j = i + 1; j <= n - 1; j++) {
      string s1 = s.substr(1, (i - 1 + 1));
      string s2 = s.substr(i + 1, (j - (i + 1) + 1));
      string s3 = s.substr(j + 1, (n - (j + 1) + 1));
      if (s1 + s2 == c || s1 + s3 == c || s2 + s3 == c) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
