#include <bits/stdc++.h>
static char input[100];
static size_t len;
static size_t rl = 0, ll = 0;
static const char* cf = "CODEFORCES";
static const size_t cf_l = sizeof("CODEFORCES") - 1;
int main() {
  scanf("%s", input);
  len = strlen(input);
  if (len < cf_l) goto no;
  for (size_t i = 0; i < cf_l; i++) {
    if (input[i] != cf[i]) break;
    ll++;
  }
  if (ll == cf_l) goto yes;
  for (size_t i = cf_l; i > 0; i--) {
    if (cf[i - 1] != input[len - (cf_l - i) - 1]) break;
    rl++;
  }
  if (rl + ll >= cf_l) goto yes;
no:
  puts("NO");
  return 0;
yes:
  puts("YES");
  return 0;
}
