﻿namespace topCoder
{
	using System;
	using System.Collections.Generic;
	using System.Text.RegularExpressions;

	class p1
	{
		public void foo()
		{
			string s = Console.ReadLine();
			string r = "CODEFORCES";

			for (int i = 0; i < r.Length+1; i++)
			{
				string t = r.Insert(i, "[A-Z]*");
				Regex re = new Regex("^"+t+"$");

				if (re.IsMatch(s))
				{
					Console.WriteLine("YES");
					return;
				}
			}

			Console.WriteLine("NO");
		}
	}
}
