import java.util.Scanner;
Class Main{
 public static void main(String[] args){
  int i,memo,flag1=0;flag2=0;
  String s[] = new String[100];
  Scanner sc = new Scanner(System.in);
  
  s = sc.nextLine();
  
  for(i=0;i<s.length;i++){
   if(s[i]=='C'){
    flag1=1;
    memo = i;
   }
  }
  while(memo<s.length){
   if(s[memo]=='F'){
    flag2=1;
   }
  }
  if(flag1==1&&flag2==1){
   System.out.println("Yes");
  }
  else
   System.out.println("No");
 }
}