main=do
 s<-getLine
 putStrLn (g s ((length s)-1) 0)
  where g s i f = if i<0 then "No"
                         else (if f==0 then (g s (i-1) (if s!!i=='F' then 1 else 0))
                                       else (if s!!i=='C' then "Yes" else (g s (i-1) 1)))