#include <iostream>
#include <cstring>

using namespace std;

int main()
{
    int i;
    char s[105];
    bool gasitC=false, gasitF=false;

    cin >> s;
    int n = strlen(s);
    for (i=0;i<n;i++)
    {
        if (s[i] == 'C')
        {
            gasitC = true;
            break;
        }
    }
    if (!gasitC)
        cout << "No\n";
    else
    {
        for (;i<n;i++)
            if (s[i] == 'F')
            {
                gasitF=true;
                break;
            }
        if (!gasitF)
        {
            cout << "No\n";
        }
        else cout << "Yes\n";
    }
    return 0;
}
