#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  char str[] = "CODEFORCES";
  int i = 0, j = s.size() - 1, k = 9;
  while (i < s.size() && i < 10 && s[i] == str[i]) ++i;
  while (j > -1 && k > -1 && s[j] == str[k]) {
    --j;
    --k;
  }
  if (10 - k - 1 + i >= 10)
    cout << "YES";
  else
    cout << "NO";
}
