P23640 [AtCoder] CF
入门
题目描述

Problem Description

The name of this contest is CODEFESTIVAL, and by removing some characters, it can be turned into the string CF.

Curious Takahashi wondered if this could be done with other strings as well.

Given a string $ s $ consisting of uppercase English alphabets, determine if it is possible to remove some characters from $ s $ to form the string CF.

Input Format

The input is given from the standard input in the following format:

$ s $

Output Format

Output Yes if it is possible to remove some characters from $ s $ to form the string CF, otherwise output No.

Sample Input and Output

Sample Input #1

CODEFESTIVAL

Sample Output #1

Yes

Sample Input #2

FESTIVALCODE

Sample Output #2

No

Sample Input #3

CF

Sample Output #3

Yes

Sample Input #4

FCF

Sample Output #4

Yes

Notes/Hints

Constraints

  • $ 2≦|s|≦100 $
  • $ s $ is a string consisting only of uppercase letters (A-Z)

Sample Explanation 1

By keeping the 1st character C and the 5th character F and removing the others, CF can be obtained.

Sample Explanation 2

FC could be obtained, but the order of characters cannot be changed, so in this case, CF cannot be formed.

Sample Explanation 3

It is possible that no characters need to be removed.

Sample Explanation 4

By removing the 1st character, CF can be obtained.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
CODEFESTIVAL
样例输出
Yes