#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s0 = "CODEFORCES";
  cin >> s;
  int x = 0, y = 0;
  for (; x < s0.size() && x < s.size(); ++x)
    if (s[x] != s0[x]) break;
  for (; y < s0.size() && y < s.size(); ++y)
    if (s[s.size() - 1 - y] != s0[s0.size() - 1 - y]) break;
  cout << (x + y < s0.size() ? "NO\n" : "YES\n");
  return 0;
}
