#include <bits/stdc++.h>
using namespace std;
long long n, i, v1, v2;
string x, s;
int main() {
  cin >> x;
  s = "CODEFORCES";
  if (s.length() > 10)
    n = s.length();
  else
    n = 10;
  for (i = 0; i < n; i++) {
    if (x[i] == s[i])
      v1++;
    else
      break;
  }
  for (i = 0; i < n; i++) {
    if (x[x.length() - i - 1] == s[10 - i - 1])
      v2++;
    else
      break;
  }
  if (v1 + v2 >= 10)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
