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

  var index_for_F = -1;
  var rev_index_for_F = s.split('').reverse().join('').indexOf('F');
  if (rev_index_for_F !== -1){
    index_for_F = s.length - rev_index_for_F - 1;
  }

  var index_for_C = -1;
  var rev_index_for_C = s.split('').reverse().join('').indexOf('C');
  if (rev_index_for_C !== -1){
    index_for_C = s.length - rev_index_for_C - 1;
  }

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