function Main(input) {
	input = input.trim().split("");
  var cFlag = false;
  var fFlag = false;
	for(var i = 0; i < input.length; i++){
      var tmp = input[i];
      if(tmp != "C" && tmp != "F"){
         input.shift();
        i--;
        continue;
      }else if(tmp == "C"){
         if(cFlag){
            input.shift();
        	i--;
         }else{
           cFlag = true;
         }
      }else if(tmp == "F"){
           if(fFlag){
              input.shift();
        	 i--;
              }else{
               fFlag = true; 
              }
		}
      
    }
  //console.log(input);
  if(input.length != 2){
     console.log("No");
     }else if(input[0] == "C" && input[1] == "F"){
     console.log("Yes");
     }else{
       console.log("No");
     }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
