#include <bits/stdc++.h>
using namespace std;
const int mm = 10005;
int n, m, q;
char st[mm] = "CODEFORCES";
int main() {
  int T, c = 0;
  char s[mm];
  while (cin >> s) {
    int j = 0;
    for (int i = 0; s[i] != '\0' && j < 10; i++) {
      if (s[i] == st[j])
        j++;
      else
        break;
    }
    int l = j;
    j = 9;
    for (int i = strlen(s) - 1; i >= 0 && j >= 0; i--) {
      if (s[i] == st[j])
        j--;
      else
        break;
    }
    j = 9 - j;
    if (l + j >= 10)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
