#include <bits/stdc++.h>
using namespace std;
string a, b = "CODEFORCES";
bool check() {
  int n = ((int)a.size());
  for (int i = 0; i < n; ++i)
    for (int j = i; j < n; ++j)
      if (a.substr(0, i) + a.substr(j + 1, n - j - 1) == b) return true;
  return false;
}
int main() {
  cin >> a;
  printf("%s\n", check() ? "YES" : "NO");
  return 0;
}
