const fs = require("fs");

const input = fs.readFileSync(0).toString().trim();
let found = false;
const indexOfC = input.indexOf("C");
if (indexOfC !== -1) {
  const indexOfF = input.indexOf("F", indexOfC + 1);
  if (indexOfF !== -1) found = true;
}
process.stdout.write(found ? "Yes" : "No");
