stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:
#include <iostream>

#include <cstdio>

#include <algorithm>

#include <cstring>

#define Js for(int i=0;i<Len;i++) {

#define is if(c[i]=='C') p=1;

#define a if(c[i]=='F' && p==1) q=1;}

#define sha if(p&&q) cout<<"Yes\n"<<endl; else cout<<"No\n";

#define bi return 0;}

using namespace std;

char c[105];

int main() {

    scanf("%s",c);

    int p=0,q=0;

    int Len=strlen(c);

    Js is a sha bi

// Faster C++ solution for the same problem (measured speedup: 5.3275912122823685x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main()

{

	string a;

	int s=1000,b=0;

	cin>>a;

	for(int i=0;i<a.size();i++)

	{

		if(a[i]=='C')

{

if(i<s)

{

s=i;

}

}

		if(a[i]=='F')

{

if(i>b)

{

b=i;

}

}

	}

	if(s<b)

	{

		cout<<"Yes\n";

	}

	else

	{

		cout<<"No\n";

	}

return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.320825415482939x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<iostream>

using namespace std;

char s[300];

int main()

{

	int i=1,f=0;

	cin>>s;

	for(i=0;i<300;i++)

	{

		if(s[i-1]=='C')

			f=1;

		if(f==1&&s[i-1]=='F')

		{

			cout<<"Yes";

			return 0;

		}

	}

	cout<<"No";

}

// Faster C++ solution for the same problem (measured speedup: 5.326527160947212x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

string s;

int main()

{

	cin>>s;

	for(int i=0;i<s.size();i++)

	{

		if(s[i]=='C')

		{

			for(int j=i+1;j<=s.size();j++)

			{

				if(s[j]=='F') 

				{

					cout<<"Yes";

					return 0;

				}

			}

		}

	}

	cout<<"No";

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.325166184819959x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<iostream>

using namespace std;

string a;   

bool v[2];



int main() {    

    cin >> a;

    for(int i = 0; i < a.length(); i ++) {

        if(a[i]=='C') v[0] = 1;

        if(a[i]=='F' && v[0]) {

        	printf("Yes\n");

        	return 0;

		}

    }

    printf("No\n");

}

// Faster C++ solution for the same problem (measured speedup: 5.270656232746856x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main(){

    string a;

    cin>>a;

    int cnt=0;  //用来标记

    for(int i=0;i<a.size();i++){

        if(a[i]=='C'){

            cnt=1;

        }

        if(a[i]=='F'&&cnt==1){

            cout<<"Yes";

            return 0;

        }

    }

    cout<<"No";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.36499615846077x):
#include<cstdio>

#include <cstring>

using namespace std;

char ch[1000000],l,r;

int a;



int main(){

    scanf("%s",ch);

    a=strlen(ch);

    for(int i=0;i<a;i++){

        if(l==0){

            if(ch[i]=='C'){

                l=1;

            }

        }

        else{

            if(ch[i]=='F'){

                printf("Yes");

                return 0;

            }

        }

    }

    printf("No");

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main(){

    string s;

	int a=0;

    cin>>s;

    for(int i=0;s[i]!='\0';++i){

    	if(s[i]=='C'){

    		a=1;

		}

		if(a==1){

			if(s[i]=='F'){

				cout<<"Yes";

				return 0;

			}

		}

	}

	cout<<"No";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.313546830834546x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

	int len,i,ok=0;

	string s;

	cin>>s;

	len=s.size()-1;

	for(i=0;i<=len;i++)

	{

		if(ok==0&&s[i]=='C')

		ok=1;

		if(ok==1&&s[i]=='F')

		ok=2;

		if(ok==2)

		break;

	}

	if(ok==2)

	cout<<"Yes";

	else

	cout<<"No";

}

// Faster C++ solution for the same problem (measured speedup: 5.356660291718818x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

#include<cstring>

using namespace std;

int main(){

	string s;

	getline(cin,s);

	if(s.find("C")<s.length()){

		int k=s.find("C");

		if(s.find("F",k)<s.length()) cout<<"Yes";

		else cout<<"No";

	}

	else cout<<"No";

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.35579663969113x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

#include<cstdio>

#include<cstring>

using namespace std;

int main(){

    string s;

    cin>>s;

    for(int i=0;i<s.size();i++){

        if(s[i]=='C'){

            for(int j=i+1;j<s.size();j++){

                if(s[j]=='F'){

                    cout<<"Yes"<<endl;

                    return 0;

                }

            }

        }

    }

    cout<<"No"<<endl;

    return 0;

    

}

// Faster C++ solution for the same problem (measured speedup: 5.3258981927858695x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h> 

using namespace std;

char a[1000];

int main()

{

cin>>a;

for(int i=0;i<strlen(a);i++)

{

	if (a[i]=='C') 

	 {

	 	for(int ii=i+1;ii<strlen(a);ii++)

	 	 {

	 	 	if (a[ii]=='F') {cout<<"Yes"<<endl;return 0;}

	 	 }

	 }

}

cout<<"No"<<endl;

return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.3294847950890505x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

#include<string>

using namespace std;

int main()

{

	string n;

	int a,m;

	cin>>n;

	a=n.size();

	for(int i=0;i<a;i++)

	{

		if(n[i]=='C')

		{

			for(int k=i+1;k<=a-1;k++)

			{

				if(n[k]=='F')

				{

					cout<<"Yes"<<endl;

					return 0;

				}

			}

		}

	}

	cout<<"No"<<endl;

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.37057699689518x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

	bool a=0;

	string b;

	cin>>b;

	for(int i=0;i<b.length();i++)

	{

		if(b[i]=='C')

			a=1;

		if(b[i]=='F'&&a)

		{

			printf("Yes\n");

			return 0;

		}

	}

	printf("No\n");

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.303464301591609x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main(){

    char c;

    bool fc=0;

    while(cin>>c){

        if(c=='C'&&!fc)

            fc=1;

        if(c=='F'&&fc){

            cout<<"Yes"<<endl;

            return 0;

        }

    }

    cout<<"No"<<endl;

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.3277546857075135x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>



using namespace std;



int main()

{

    string a;

    cin >> a;

    int cnt=0;  

    for(int i=0;i<a.size();i++)

    {

        if(a[i]=='C')

            cnt=1;   

        if(a[i]=='F'&&cnt==1)

        {

            cout << "Yes";

            return 0;

        }

    }

    cout << "No";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.3576876165451175x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

string s;

int main()

{

    cin>>s;

    int len=s.length();

    for(int i=0;i<len;i++)

    {

        if(s[i]=='C')

        {

            for(int j=i + 1;j<len;j++)

            {

                if(s[j]=='F')

                {

                    cout<<"Yes"<<endl; 

                    return 0;

                }

            }

        }

    }

    cout<<"No"<<endl;

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.33025290777811x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main(){

	int flag=0;

	string s;

	cin>>s;

	for(int i=0;i<s.length();i++){

		if(flag==0&&s[i]=='C'){

			flag++;

			continue;

		}

		if(flag==1&&s[i]=='F'){

			cout<<"Yes";

			return 0;

		}

	}

	cout<<"No";

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.314038453454474x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

#include<cstdio>

#include<string>

using namespace std;

 int q,p,w[1000001],u[1000001],o;

 string a;

 int main()

 {

     cin>>a;

     for (int i=0;i<a.size();i++)

     {

         if (a[i]=='C') 

         {

             p++;

             u[p]=i+1;

         }

         else if (a[i]=='F')

         {

            q++;

             w[q]=i+1;

         }

     }

     if (q>=1 && p>=1)

     {

     for (int i=1;i<=p;i++)

     {

         for (int j=1;j<=q;j++)

         {

             if (u[i]<w[j])

             {

                 o=1;

             }

         }

     }

	 if (o==1) cout<<"Yes"<<endl;

     else cout<<"No"<<endl;	

     }

     else cout<<"No"<<endl;

     

     

 }

// Faster C++ solution for the same problem (measured speedup: 5.330471536196893x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

char ch[110];

int n;

int main(){

	cin>>ch;

	n=strlen(ch);

	for(int i=0;i<n;i++){

		if(ch[i]=='C'){

			for(int j=i+1;j<n;j++){

				if(ch[j]=='F'){

					printf("Yes");

					return 0;

				};

			}

			printf("No");

			return 0;

		}

	}

	printf("No");

}

// Faster C++ solution for the same problem (measured speedup: 5.30572418602886x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

#include<cstdio>

#include<string>

using namespace std;

 int q,p,w[1000001],u[1000001],o;

 string a;

 int main()

 {

     cin>>a;

     for (int i=0;i<a.size();i++)

     {

         if (a[i]=='C') 

         {

             p++;

             u[p]=i+1;

         }

         else if (a[i]=='F')

         {

            q++;

             w[q]=i+1;

         }

     }

     if (q>=1 && p>=1)

     {

     for (int i=1;i<=p;i++)

     {

         for (int j=1;j<=q;j++)

         {

             if (u[i]<w[j])

             {

                 o=1;

             }

         }

     }

     if (o==1) cout<<"Yes"<<endl;

     else cout<<"No"<<endl;  

     }

     else cout<<"No"<<endl;

 }

// Faster C++ solution for the same problem (measured speedup: 5.330471536196893x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int q,p,w[1000001],u[1000001],o;

string a;

int main()

{

    cin>>a;

    for(int i=0;i<a.size();i++)

    {

        if(a[i]=='C') 

        {

            p++;

            u[p]=i+1;

        }

        else if (a[i]=='F')

        {

            q++;

            w[q]=i+1;

        }

    }

    if (q>=1 && p>=1)

    {

    for (int i=1;i<=p;i++)

    {

        for (int j=1;j<=q;j++)

        {

            if (u[i]<w[j])

            {

                o=1;

            }

        }

    }

    if (o==1) cout<<"Yes"<<endl;

    else cout<<"No"<<endl; 

    }

    else cout<<"No"<<endl;

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.330115144684193x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int n;

string s;

int main(void)

{

    cin>>s;

    n=s.size();

    for(int i=0;i<n;i++)

    {

        if(s[i]=='C')

        {

            for(int j=i+1;j<n;j++)

            {

                if(s[j]=='F')

                {

                    printf("Yes");

                    exit(0);

                }

            }

        }

    }

    printf("No");

}

// Faster C++ solution for the same problem (measured speedup: 5.304963554209562x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

#include<cstdio>

#include<string>

using namespace std;

 int q,p,w[1000001],u[1000001],o;

 string a;

 int main()

 {

     cin>>a;//首先输入字符串

     for (int i=0;i<a.size();i++)//从0位开始循环

     {

         if (a[i]=='C') 

         {

             p++;

             u[p]=i+1;

         }//判断是否发现C这个东西，并统计其位置

         else if (a[i]=='F')

         {

            q++;

             w[q]=i+1;

         }

     }//判断是否发现F，同理 统计位置情况

     if (q>=1 && p>=1)

     {

     for (int i=1;i<=p;i++)

     {

         for (int j=1;j<=q;j++)

         {

             if (u[i]<w[j])

             {

                 o=1;

             }

         }

     }//循环，找到C是否在F的前面

     if (o==1) cout<<"Yes"<<endl;//在前面则Yes

     else cout<<"No"<<endl;//否则No   

     }

     else cout<<"No"<<endl;//不存在两个数，直接No

     //以上为全部过程，希望能理解。

 }

// Faster C++ solution for the same problem (measured speedup: 5.330471536196893x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
/*https://www.luogu.org/problemnew/show/AT2084*/

/*testing*/

#include<bits/stdc++.h>

using namespace std;

char ch[100]; bool b,ans;

int main(void){

	scanf("%s",ch);

	for(int i=0;ch[i]!=0;i++){

		if(ch[i]=='C') b=true;

		if(b&&ch[i]=='F') ans=true;

	}

	printf(ans?"Yes\n":"No\n");

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.2667624639993935x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include <iostream>

#include <cstdio>

#include <algorithm>

#include <cstring>

#define Js for(int i=0;i<Len;i++) {

#define is if(c[i]=='C') p=1;

#define a if(c[i]=='F' && p==1) q=1;}

#define sha if(p&&q) cout<<"Yes\n"<<endl; else cout<<"No\n";

#define bi return 0;}

using namespace std;

char c[105];

int main() {

    scanf("%s",c);

    int p=0,q=0;

    int Len=strlen(c);

    Js is a sha bi

// Faster C++ solution for the same problem (measured speedup: 5.320252524239672x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main()

{

	string a;

	int s=1000,b=0;

	cin>>a;

	for(int i=0;i<a.size();i++)

	{

		if(a[i]=='C')

{

if(i<s)

{

s=i;

}

}

		if(a[i]=='F')

{

if(i>b)

{

b=i;

}

}

	}

	if(s<b)

	{

		cout<<"Yes\n";

	}

	else

	{

		cout<<"No\n";

	}

return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.313496047237894x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<iostream>

using namespace std;

char s[300];

int main()

{

	int i=1,f=0;

	cin>>s;

	for(i=0;i<300;i++)

	{

		if(s[i-1]=='C')

			f=1;

		if(f==1&&s[i-1]=='F')

		{

			cout<<"Yes";

			return 0;

		}

	}

	cout<<"No";

}

// Faster C++ solution for the same problem (measured speedup: 5.319189938621478x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

string s;

int main()

{

	cin>>s;

	for(int i=0;i<s.size();i++)

	{

		if(s[i]=='C')

		{

			for(int j=i+1;j<=s.size();j++)

			{

				if(s[j]=='F') 

				{

					cout<<"Yes";

					return 0;

				}

			}

		}

	}

	cout<<"No";

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.317830837221251x):
#include<stdio.h>

int main()

{

	char ch[100];int i,j,a,b;

	scanf("%s",&ch);b=-1;a=-1;

	for(i=0;i<=99;i++)

	{

		if(ch[i]=='C')

		{a = i;

		break;

	

	}

	}



	if(a!=-1&&a<=98)

	{

		for(j=0;j<=99;j++)

		{

			if(ch[j]=='F')

			{

				b=j;

			

			}

		}

		if(a<b) printf("Yes");

		else printf("No");

	}

	else printf("No");

	return 0;

	

}