import sys

def input(): return sys.stdin.readline().strip()

def resolve():

    s=eval(input())

    if 'C' in s:

        if 'F' in s[s.index('C'):]:

            print('Yes')

        else:

            print('No')

    else:

        print('No')

resolve()


import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    s=eval(input())

    if 'C' in s and 'F' in s and s.find('C')<s.rfind('F'):

        print('Yes')

    else:

        print('No')

resolve()
import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    s = eval(input())
    if "C" in s:
        if "F" in s[s.index("C") :]:
            print("Yes")
        else:
            print("No")
    else:
        print("No")


resolve()

import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    s = eval(input())
    if "C" in s and "F" in s and s.find("C") < s.rfind("F"):
        print("Yes")
    else:
        print("No")


resolve()

-    if "C" in s: -        if "F" in s[s.index("C") :]: -            print("Yes") -        else: -            print("No") +    if "C" in s and "F" in s and s.find("C") < s.rfind("F"): +        print("Yes")