#include <bits/stdc++.h>
using namespace std;
int main() {
  short p = 0, q = 9;
  bool done;
  char c[] = "CODEFORCES";
  char g[101];
  scanf("%s", g);
  short i, j;
  for (i = 0, j = strlen(g) - 1; i < j && p <= q;) {
    done = false;
    if (g[i] == c[p]) {
      p++;
      i++;
      done = true;
    }
    if (g[j] == c[q]) {
      q--;
      j--;
      done = true;
    }
    if (!done) break;
  }
  if (p == q) {
    if (c[p] != g[i] && c[p] != g[j]) done = false;
  }
  if (!done || strlen(g) < 10)
    printf("NO\n");
  else
    printf("YES\n");
  fclose(stdin);
  return 0;
}
