#include <bits/stdc++.h>
#define pb push_back

using namespace std;

void debug_out() { cerr << '\n'; }
template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cerr << " " << H; debug_out(T...);}
#define dbg(...) cerr << #__VA_ARGS__ << " ->", debug_out(__VA_ARGS__)
#define dbg_v(x, n) do{cerr<<#x"[]: ";for(int _=0;_<n;++_)cerr<<x[_]<<" ";cerr<<'\n';}while(0)
#define dbg_ok cerr<<"OK!\n"

typedef pair<int,int> pii;
typedef long long int ll;
typedef long double ld;

inline int two(int n) { return 1 << n; }
inline int test(int n, int pos) { return (bool) (n & two(pos)); }
inline void set_bit(int &n, int b) { n |= two(b); }
inline void unset_bit(int &n, int b) { n &= ~two(b); }
inline int last_bit(int n) { return n & (-n); }

const int DMAX = 1e5+10;

vector <int> vec;
vector <int> arb[DMAX];

char s[DMAX];

int V[DMAX];

int n;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    int t,i,j,lg;

    cin>>s;
    lg=strlen(s);
    for(i=0;i<lg && s[i] != 'C';i++);
    if(i == lg){
       cout<<"No\n";
       return 0;
    }
    for(;i<lg && s[i] != 'F';i++);
    if(i == lg){
       cout<<"No\n";
       return 0;
    }
    cout<<"Yes\n";
    return 0;
}
