function Main(input) {
  var input = input.split("\n");
  var string = input[0];
  var c,f,count = 0;
  for(var i = 0;i < string.length;i++){
    if(string[i] == "C" && count == 0){
      c = i;
      count++;
    }
    if(string[i] == "F"){
      f = i;
    }
  }
  if(c<f){
    console.log("Yes");
  }else{
    console.log("No");
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));