S = eval(input())

if S.count("C") == 0 or S.count("F") == 0:

  print("No")

else:

  S = S[S.index("C"):]

  if S.count("F") > 0:

    print("Yes")

  else:

    print("No")
import re

print(['No', 'Yes'][re.match('.*C.*F.*', input()) != None])

S = eval(input())
if S.count("C") == 0 or S.count("F") == 0:
    print("No")
else:
    S = S[S.index("C") :]
    if S.count("F") > 0:
        print("Yes")
    else:
        print("No")

import re

print(["No", "Yes"][re.match(".*C.*F.*", input()) != None])

-S = eval(input()) -if S.count("C") == 0 or S.count("F") == 0: -    print("No") -else: -    S = S[S.index("C") :] -    if S.count("F") > 0: -        print("Yes") -    else: -        print("No") +import re + +print(["No", "Yes"][re.match(".*C.*F.*", input()) != None])