
#include<iostream>
#include<string>
using namespace std;

int traveral(string,char);

int main()
{
    int i,j;
    string s;
    int n;

    cin>>s;
    i = traveral(s,'C');
    j = traveral(s,'F');
    if( i > -1 &&  j > -1 && i < j)
    {
        cout<<"YES"<<endl;
    }
    else
    {
        cout<<"NO"<<endl;
    }

    return 0;
}
int traveral(string s,char er)
{
    int i;
    int n = s.length();
    for(i = n;i >= 0;i--)
    {
        if(s[i] == er)
        {
            return i;
        }
    }
    return -1;
}
