object Main {
  def main(args: Array[String]): Unit = {
    val s = io.StdIn.readLine()

    var c, f = false

    for (ch <- s) {
      if (ch == 'C') c = true
      if (ch == 'F' && c) f = true
    }

    println(if (c && f) "Yes" else "No")
  }
}
