import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    ss <- getLine
    let as = nub . filter (`elem` "CF") $ dropWhile (/= 'C') ss
    case take 2 as of
        "CF" -> putStrLn "Yes"
        _    -> putStrLn "No"