﻿import std.conv, std.stdio, std.string, std.array, std.range, std.algorithm;

string s = "CODEFORCES";

void main() {

	char[] t = readln.strip.dup;

	int len;
	foreach (i, e; s) {
		if (e == t[i]) {
			++len;
		}
		else {
			break;
		}
	}

	if (len == 10) {
		writeln("YES");
		return;
	}

	len = 0;

	int j;
	foreach_reverse (i, e; s) {
		if (e == t[$ - j - 1]) {
			++len;
		}
		else {
			break;
		}
		++j;
	}

	if (len == 10) {
		writeln("YES");
		return;
	}

	char[] begin, end;

	foreach (i, e; s) {
		if (e == t[i]) {
			begin ~= t[i];
		}
		else {
			break;
		}
	}

	j = 0;
	foreach_reverse (i, e; s) {
		if (e == t[$ - j - 1]) {
			end ~= t[$ - j - 1];
		}
		else {
			break;
		}
		++j;
	}

	if ((begin ~ end).length >= 10) {
		writeln("YES");
		return;
	}

	writeln("NO");
}