let s = read_line () in
let n = String.length s in
let rec loop i mode =
    if i = n then false else
        match mode with
        | 0 -> if s.[i] = 'C' then loop (i + 1) 1 else loop (i + 1) mode
        | _ -> if s.[i] = 'F' then true else loop (i + 1) mode
in
print_endline @@ if loop 0 0 then "Yes" else "No"