#include <bits/stdc++.h>
using namespace std;
string Str1, Str2;
int Len1, Len2, j;
int main() {
  cin >> Str1;
  Str2 = "CODEFORCES";
  Len1 = Str1.size();
  Len2 = Str2.size();
  if (Len1 < Len2) {
    printf("NO");
    return 0;
  }
  for (int i = 0; i < Len1; i++)
    if (Str1[i] == Str2[j]) {
      j++;
    } else {
      break;
    }
  for (int i = Len1 - Len2 + j; i < Len1; i++)
    if (Str1[i] == Str2[j]) {
      j++;
    } else {
      printf("NO");
      return 0;
    }
  printf("YES");
  return 0;
}
