// parameter "input" gets all data
function Main(input) {
  var s = input.trim();

  index_of_C = s.indexOf('C');
  index_of_F = s.indexOf('F');

  if((index_of_C < index_of_F) && (index_of_C !== -1) && (index_of_F !== -1)){
    console.log('YES');
  }else{
    console.log('NO');
  }
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));