Problem: A large banner with word CODEFORCES was ordered for the 1000-th onsite round of Codeforcesω that takes place on the Miami beach. Unfortunately, the company that made the banner mixed up two orders and delivered somebody else's banner that contains someone else's word. The word on the banner consists only of upper-case English letters.

There is very little time to correct the mistake. All that we can manage to do is to cut out some substring from the banner, i.e. several consecutive letters. After that all the resulting parts of the banner will be glued into a single piece (if the beginning or the end of the original banner was cut out, only one part remains); it is not allowed change the relative order of parts of the banner (i.e. after a substring is cut, several first and last letters are left, it is allowed only to glue the last letters to the right of the first letters). Thus, for example, for example, you can cut a substring out from string 'TEMPLATE' and get string 'TEMPLE' (if you cut out string AT), 'PLATE' (if you cut out TEM), 'T' (if you cut out EMPLATE), etc.

Help the organizers of the round determine whether it is possible to cut out of the banner some substring in such a way that the remaining parts formed word CODEFORCES.

Input

The single line of the input contains the word written on the banner. The word only consists of upper-case English letters. The word is non-empty and its length doesn't exceed 100 characters. It is guaranteed that the word isn't word CODEFORCES.

Output

Print 'YES', if there exists a way to cut out the substring, and 'NO' otherwise (without the quotes).

Examples

Input

CODEWAITFORITFORCES


Output

YES


Input

BOTTOMCODER


Output

NO


Input

DECODEFORCES


Output

YES


Input

DOGEFORCES


Output

NO

Solution (in JAVA):

Solution:
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.InputMismatchException;

public final class CuttingBanner
{
	private static String s, currentFirst, currentEnd;
	private static int length, firstStarting, firstEnding, secondStarting, secondEnding;
	private static InputReader reader;
	private static OutputWriter writer;
	
	public static void main(String[] args)
	{
		CuttingBanner banner = new CuttingBanner();
		
		reader = banner.new InputReader(System.in);
		writer = banner.new OutputWriter(System.out);
		
		getAttributes();
		
		reader.close();
		writer.close();
	}
	
	public static void getAttributes()
	{
		String c = "CODEFORCES";
		
		s = reader.next();
		length = s.length();
		
		// System.out.println("length : " + length);
		
		int t, e;
		
		t = s.indexOf("CODEFORCES");
		e = t + 9;

		if (t != -1)
		{
			if (t == 0 || e == length - 1)
			{
				writer.println("YES");

				return;
			}
		}
		
		for (int i = 0; i < 10; i++)
		{
			currentFirst = c.substring(0, i + 1);
			
			if (i != 9)
				currentEnd = c.substring(i + 1, 10);
			else
				currentEnd = "S";
			
/*			System.out.println("current i : " + i);
			System.out.println("curr f : " + currentFirst + ", curr e : " + currentEnd);
		*/	
			firstStarting = s.indexOf(currentFirst) + 1;
			firstEnding = firstStarting + i;
			
			secondStarting = s.indexOf(currentEnd, length - currentEnd.length()); // (currentEnd) + 1;
			secondEnding = secondStarting + currentEnd.length();
			
/*			System.out.println("curr fS : " + firstStarting + ", curr fE : " + firstEnding);
			System.out.println("curr sS : " + secondStarting + ", curr sE : " + secondEnding);
	*/		
			if (firstStarting == -1 || secondStarting == -1)
				continue;
			
			if (firstStarting == 1 && secondEnding == length)
			{
				writer.println("YES");
				
				// System.out.println("first : " + currentFirst + ", end : " + currentEnd);
				
				return;
			}
		}
		
		writer.println("NO");
	}
	
	class InputReader
	{
		private InputStream stream;
		private byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;

		public InputReader(InputStream stream)
		{
			this.stream = stream;
		}

		public int read()
		{
			if (numChars == -1)
				throw new InputMismatchException();
			
			if (curChar >= numChars)
			{
				curChar = 0;
				try
				{
					numChars = stream.read(buf);
				}
				catch (IOException e)
				{
					throw new InputMismatchException();
				}
				if (numChars <= 0)
					return -1;
			}
			
			return buf[curChar++];
		}

		public int nextInt()
		{
			int c = read();
			
			while (isSpaceChar(c))
				c = read();
			
			int sgn = 1;
			
			if (c == '-')
			{
				sgn = -1;
				c = read();
			}
			
			int res = 0;
			
			do
			{
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				
				res *= 10;
				res += c & 15;
				
				c = read();
			} while (!isSpaceChar(c));
			
			return res * sgn;
		}

		public long nextLong()
		{
			int c = read();
			
			while (isSpaceChar(c))
				c = read();
			
			int sign = 1;
			
			if (c == '-')
			{
				sign = -1;
				
				c = read();
			}
			
			long result = 0;
			
			do
			{
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				
				result *= 10;
				result += c & 15;
				
				c = read();
			} while (!isSpaceChar(c));
			
			return result * sign;
		}

		public String next()
		{
			int c = read();
			
			while (isSpaceChar(c))
				c = read();
			
			StringBuilder res = new StringBuilder();
			
			do
			{
				res.appendCodePoint(c);
				
				c = read();
			} while (!isSpaceChar(c));
			
			return res.toString();
		}

		public boolean isSpaceChar(int c)
		{
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}

		public void close()
		{
			try
			{
				stream.close();
			}
			catch (IOException e)
			{
				e.printStackTrace();
			}
		}

	}

	class OutputWriter
	{
		private PrintWriter writer;

		public OutputWriter(OutputStream stream)
		{
			writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(
					stream)));
		}

		public OutputWriter(Writer writer)
		{
			this.writer = new PrintWriter(writer);
		}

		public void println(int x)
		{
			writer.println(x);
		}

		public void print(int x)
		{
			writer.print(x);
		}

		public void println(long x)
		{
			writer.println(x);
		}

		public void print(long x)
		{
			writer.print(x);
		}

		public void println(String s)
		{
			writer.println(s);
		}

		public void print(String s)
		{
			writer.print(s);
		}

		public void printSpace()
		{
			writer.print(" ");
		}

		public void flush()
		{
			writer.flush();
		}

		public void close()
		{
			writer.close();
		}

	}

}