#include <bits/stdc++.h>
using namespace std;
string a, b, d, f, f1;
char c[105];
int i, j, l, m, n, t, k, k1, l1, O, p, q, q1, r, r1;
int main() {
  a = "CODEFORCES";
  cin >> b;
  t = b.find(a);
  j = b.find('S');
  l1 = b.size();
  q1 = l1;
  if (t == 0) {
    cout << "YES";
  } else if (t != -1 && t > 0 && l1 - t == 10) {
    cout << "YES";
  } else {
    while (b[i] == a[r]) {
      c[r1++] = a[r];
      i++;
      r++;
    }
    c[r] = '\0';
    d = c;
    f = a.substr(d.size(), 9);
    t = b.find(d);
    reverse(b.begin(), b.end());
    reverse(f.begin(), f.end());
    k = b.find(f);
    if (t == 0 && k == 0)
      cout << "YES";
    else
      cout << "NO";
  }
}
