-- Try AtCoder
-- author: Leonardone @ NEETSDKASU

yes = "Yes"
no  = "No"

search ch tp = search' $ snd tp where
    search' (x:xs)
        | x == ch   = (True  && fst tp, xs)
        | otherwise = search' xs
    search' []      = (False && fst tp, [])

searchC = search 'C'
searchF = search 'F'

answer (True, _)  = yes
answer (False, _) = no

main = putStrLn . answer . searchF . searchC . (,) True =<< getLine

