#include<iostream>
#include<string>

using namespace std;

int main(){
	string s;
	cin >> s;
    int p = s.find('C', 0);
    p = s.find('F', p);
	cout << ((p != string::npos)? "Yes" : "No") << endl;
	return 0;
}
