const fs = require("fs");

const input = fs.readFileSync(0).toString().trim();
const indexOfC = input.indexOf("C");
process.stdout.write(indexOfC === -1 || input.indexOf("F", indexOfC + 1) === -1 ? "No\n" : "Yes\n");
