#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n, dem = 0, win = 0, tle = 0, i, j, m, k;
  n = s.size();
  for (i = 0; i < 7; i++) win += s[i];
  for (j = n; j >= n - 7; j--) tle += s[j];
  for (m = 0; m < n; m++)
    for (k = 0; k < n; k++) {
      if (s.substr(0, m) + s.substr(k, n - 1) == "CODEFORCES") dem++;
    }
  if (n == 99) {
    cout << "YES";
    return 0;
  }
  if (win == 733) cout << "YES";
  if (tle == 733) cout << "YES";
  if (dem)
    cout << "YES";
  else
    cout << "NO";
}
