#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  a = "CODEFORCES";
  cin >> b;
  int l1 = a.length();
  int l2 = b.length();
  int i = 0, j = 0;
  if (a[0] == b[0]) {
    while (a[i] == b[j] && i < l1 && j < l2) {
      i++, j++;
    }
    if (i == l1) {
      cout << "YES";
      return 0;
    } else {
      int i1 = l1 - 1, j1 = l2 - 1;
      while (a[i1] == b[j1] && i1 >= i && j1 > j) {
        i1--, j1--;
      }
      if (i1 < i) {
        cout << "YES";
        return 0;
      } else {
        cout << "NO";
        return 0;
      }
    }
  } else {
    while (a[i] != b[j] && j < l2) {
      j++;
    }
    if (j == l2) {
      cout << "NO";
      return 0;
    }
    while (a[i] == b[j] && i < l1 && j < l2) {
      i++, j++;
    }
    if (i == l1 && j == l2) {
      cout << "YES";
      return 0;
    } else
      cout << "NO";
  }
  return 0;
}
