#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "CODEFORCES", b;
  cin >> b;
  int i = 0, j = 0;
  while (a[i] == b[i]) i++;
  while (a[a.size() - j - 1] == b[b.size() - j - 1]) j++;
  if (i + j >= a.size())
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
