object Main extends App{
    // Here your code !
    val scanner = new java.util.Scanner(System.in)
    println(cf(scanner.next))
    
    def cf(ins:String):String = ins match {
            case ins:String if ins.indexOf("C") < ins.indexOf("F") => "Yes"
            case _ => "No"
    }
}