Problem:


Score : 100 points

Problem Statement

This contest is CODEFESTIVAL, which can be shortened to the string CF by deleting some characters.  

Mr. Takahashi, full of curiosity, wondered if he could obtain CF from other strings in the same way.  

You are given a string s consisting of uppercase English letters.
Determine whether the string CF can be obtained from the string s by deleting some characters.

Constraints

2 ≤ |s| ≤ 100

All characters in s are uppercase English letters (A-Z).

Input

The input is given from Standard Input in the following format:

s

Output

Print Yes if the string CF can be obtained from the string s by deleting some characters.
Otherwise print No.

Sample Input 1

CODEFESTIVAL

Sample Output 1

Yes

CF is obtained by deleting characters other than the first character C and the fifth character F.

Sample Input 2

FESTIVALCODE

Sample Output 2

No

FC can be obtained but CF cannot be obtained because you cannot change the order of the characters.

Sample Input 3

CF

Sample Output 3

Yes

It is also possible not to delete any characters.

Sample Input 4

FCF

Sample Output 4

Yes

CF is obtained by deleting the first character.



Sample input:
CODEFESTIVAL


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
import sys
s = input()

for i, c in enumerate(s):
  if c == 'C':
    for j in s[i:]:
      if j=='F':
      	print('Yes')
      	sys.exit()
    print('No')
    sys.exit()

Submission status: Wrong Answer

Solution code:
import sys
s = input()

for i, c in enumerate(s):
  if c == 'F':
    for j in s[i:]:
      if j=='C':
      	print('Yes')
      	sys.exit()
    print('No')
    sys.exit()

Submission status: Wrong Answer

Solution code:
# input
s = input()
if s.find('C') < s.rfind('F'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = input()
if 'C' in S[:-1]:
    a = S.index('C')
    if 'F' in S[:a]:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
S = input()

if 'CF' in S:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input().split()

cflag = 0

for i in range(len(n)):
    if n[i] == 'C':
        cflag = 1
    elif cflag == 1 and n[i] == 'F':
        print('Yes')
        exit()

print('No')

Submission status: Wrong Answer

Solution code:
s=input()
c=s.find('C')
s=s[::-1]
f=s.find('F')
f=len(s)-f-1
if c>=0 and f>c:
     print('Yes')
else:
     print('No')

Submission status: Wrong Answer

Solution code:
s=input()
c=[]
f=[]
for num in range(len(s)):
    if s[num] == 'C':
        c.append(num)
    if s[num] == 'F':
        f.append(num)
        
if 'C' in s and 'F' in s:
	print('Yes') if min(c) < max(f) else print('No')

Submission status: Wrong Answer

Solution code:
s = input()
n = len(s)
indexOfC=-1
indexOfF=-1
for i in range(n):
    if s[i] == 'C':
        indexOfC = i
        break
for i in range(n):
    if s[n-1-i] == 'F':
        indexOfF = i
        break
print("Yes" if (indexOfC >= 0 and indexOfF >= 0 and indexOfC < indexOfF) else "No")

Submission status: Wrong Answer

Solution code:
S = input()
c = S.find('C')
f = S.find('F')
if c < 0 or f < 0:
    print('No')
    exit()
print('Yes' if f-c > 0 else 'No')

Submission status: Wrong Answer

Solution code:
hoge=input()
f=0
for i in range(len(hoge)):
  if(hoge[i:].count("C")>0 and hoge[:1].count("F")>0):
    f=1
    
if(f):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = [i for i in input()]
if "CF" in s:
    print("Yes")
elif "C" in s and "F" in s:
    if s.index("C")<s.index("F"):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s= input()
a=0
b=0
for i in range(len(s)):
  if s[i]=='C':
    a = i
  elif s[i]=='F':
    b = i
if a!= 0 and a<b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s= input()
a=0
b=0
for i in range(len(s)):
  if s[i]=='C':
    a = i
  elif s[i]=='F':
    b = i
if a<b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s= input()
a=0
b=0
for i in range(len(s)):
  if s[i]=='C':
    a += i
  elif s[i]=='F':
    b += i
if a!=0  and a<b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s= input()
a=0
b=0
for i in range(len(s)):
  if s[i]=='C':
    a += i
  elif s[i]=='F':
    b += i
if a<b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
print('Yes' if 'C' and 'F' in s else 'No')

Submission status: Wrong Answer

Solution code:
S = [i for i in input()]
if "C" in S and "F" in S:
  if S.index("C")<S.index("F"):
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a=input()
if a.find('C')<a.rfind('F'):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s = list(input())
ans = ''
for i in s:
    if i in 'C':
        ans += i
    elif i in 'F':
        ans += i
print('Yes' if ans in 'CF' else 'No')

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s)-1, 0, -1):
    if s[j] == "F":
        break

print("Yes" if i < j and len(s) > 1 else "No")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s)-1, 0, -1):
    if s[j] == "F":
        break

print("Yes" if i < j else "No")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s), 0, -1):
    if [j] == "F":
        break

print("Yes" if i < j else "No")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s)):
    if s[::-1][j] == "F":
        break

print("Yes" if i+j+2 < len(s) else "No")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s)):
    if s[::-1][j] == "F":
        break

print("Yes" if i+j < len(s) else "No")

Submission status: Wrong Answer

Solution code:
s = input()
for i in range(len(s)):
    if s[i] == "C":
        break

for j in range(len(s)):
    if s[j] == "F":
        break

print("Yes" if i < j else "No")

Submission status: Wrong Answer

Solution code:
import re
print('Yes') if len(re.compile(r'.+C.+F.+').findall(input()))>=1 else print('No')

Submission status: Wrong Answer

Solution code:
s=input();print('YNeos'[s.find('C')>=s.rfind('F')::2])

Submission status: Wrong Answer

Solution code:
s=input()
if "C"in s and "F"in s:
  if s.index("C")<s.index("F"):
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
S = input()

res = 'NO'
flag = False
for i in range(len(S)):
    if S[i] == 'C':
        flag = True
    if  flag == True and S[i] == 'F':
        res = 'YES'
        break
        
print(res)

Submission status: Wrong Answer

Solution code:
a = input()
s = 0
t = 0
for i in a:
  if i == "C":
    s=1
  if i == "F" and s==1:
    t = 1
if t == 0:
  print("Yes")
else:print("No")

Submission status: Wrong Answer

Solution code:
a = input()
s = 0
t = 0
for i in a:
  if i == "C":
    s+=1
  if i == "F" and s==1:
    t = 1
if t == 0:
  print("Yes")
else:print("No")

Submission status: Wrong Answer

Solution code:
s=input()
try:print(["No","Yes"][s.index("C")<s.index("F")])
except:print("No")

Submission status: Wrong Answer

Solution code:
s = str(input())
try:
    if s.index("C") < s.index("F"):
        print("Yes")
    else:
        print("No")
except:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
a = s.find('C')

if a == -1:
    print("No")
else:
    if s[a:].find('F') == -1:
        print("Yes")

Submission status: Wrong Answer

Solution code:
#AT2084
s = input()
if s.find("C") < s.find("F",s.find("C")):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#AT2084
s = input()
if s.find("C") <= s.find("F",s.find("C")):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#AT2084
s = input()
if s.find("C") < s.find("F"):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#AT2084
s = input()
if s.find("C") < s.find("F"):
    print("Yes")
else:
    print("No")

print()

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(len(s)):
    for j in range(i,len(s)):
        if s[i]=="C":
            if s[j]=="F":
                print("Yes")
                break
else:
    print("No")

Submission status: Wrong Answer

Solution code:
L = list(input())
for i in range(len(L)) :
    if L.count("C") == 0 :
        print("No")
    elif L[i] == "C" :
        if L[i:].count("F") >= 1 :
            print("Yes")
        else :
            print("No")

Submission status: Wrong Answer

Solution code:
s=input()
j=0
for i in range(len(s)):
    if s[i]=="C":
        j+=1
    if s[i]=="F" and j>=1:
        j+=1
if j>=2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
j=0
for i in range(len(s)):
    if s[i]=="C":
        j+=1
    if s[i]=="F" and j==1:
        j+=1
if j>=2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
j=0
for i in range(len(s)):
    if s[i]=="C":
        j+=1
    if s[i]=="F" and j==1:
        j+=1
if j==2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
x=-1;y=-1
for i in range(len(s)):
  if s[i]=='C':
    x=i
    break
for j in range(len(s)):
  if s[j]=='F':
    y=j
if x+y>0 and x<y:print('Yes')
else:print('No')

Submission status: Wrong Answer

Solution code:
s=input()
if 'CF' in s:print('Yes')
else:print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if ('C' in s and 'F' in s):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if "C" in s:
    if "F" in s[s.index("C"):]:
        print("Yes")
        exit()
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
if "C" in s:
    if "F" in s[s.index("C"):]:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
c = 0
f = 0
for x in s:
    if x == 'C':c = 1
    if x == 'F':f = 1
if c==1 and f==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
print("Yes" if s.find('C')<s.find('F') and s.find('C')>=0 else 'No')

Submission status: Wrong Answer

Solution code:
import re
import sys

pat=re.compile("[A-Z]*C[A-Z]*C[A-Z]*")

str=raw_input()
r=pat.search(str)

if (r!=None):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = list(input())
a = str()
for i in s:
  if i == 'C' or i == 'F':
    a += i
if a.count("CF") > 0:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = list(str(input()))
a = n.count('C')
b = n.count('F')
if a >= 1 and b >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = list(str(input()))
print(n)
a = n.count('C')
b = n.count('F')
if a >= 1 and b >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = str(input())
if a.count('C') != 0 and a.count('F') != 0 and a.find('C') < a.find('F'):
        print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if 'C' in s and 'F' in s and s.index('C') < s.index('F'):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()
l = ''
if 'C' not in n or 'F'  not in n:
    print('No')
else:
    for i in n:
        #print(i)
        if i == 'C':
            l += 't'
        elif i == 'F':
            #print('No')
            l += 'f'
if 'tf' in l:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print("Yes")

Submission status: Wrong Answer

Solution code:
print("No")

Submission status: Wrong Answer

Solution code:
n = input()
if 'C' not in n or 'F'  not in n:
    print('No')
else:
    for i in n:
        if i == 'C':
            print('Yes')
        else:
            print('No')
        break

Submission status: Wrong Answer

Solution code:
s = input()
m = 0
n = 0
a = 0
b = 0
for i in range(len(s)):
    if i == 'C':
        m += 1
        a = i
    elif i == 'F':
        n += 1
        b = i
if a < b and m > 1 and n > 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
def main():
    s = input()
    f = False
    if s.count('C') == 0 or s.count('F') == 0:
        print('No')
        return
    for i in range(len(s)):
        if s[i] == 'C':
            for j in range(i, len(s)):
                if s[j] == 'F':
                    print('Yes')
                    f = True
                    break
            if f == False:
                print('No')
main()

Submission status: Wrong Answer

Solution code:
def main():
    s = input()
    f = False
    if s.count('C') == 0 or s.count('F') == 0:
        print('NO')
        return
    for i in range(len(s)):
        if s[i] == 'C':
            for j in range(i, len(s)):
                if s[j] == 'F':
                    print('Yes')
                    f = True
                    break
            if f == False:
                print('No')
main()

Submission status: Wrong Answer

Solution code:
s = input()
f = False
l = False
for i in range(len(s)):
    if s[i] == 'C':
        for j in range(i, len(s)):
            if s[j] == 'F':
                print('Yes')
                f = True
        if f == False:
            print('No')
        l = True
        break
if l == False:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
C = s.find("C")
F = s.rfind("F")
print(C, F)
if C != -1 and F != -1 and C < F:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
s = input()
f = False
for i in range(len(s)):
    if s[i] == 'C':
        for j in range(i, len(s)):
            if s[j] == 'F':
                print('Yes')
                f = True
                break
        if f == False:
            print('No')
            break
        else:
            break

Submission status: Wrong Answer

Solution code:
s = input()
f = False
for i in range(len(s)):
    if s[i] == 'C':
        for j in range(i, len(s)):
            if s[j] == 'F':
                print('Yes')
                f = True
                break
        if f == False:
            print('No')
            break

Submission status: Wrong Answer

Solution code:
s = input()
f = False
for i in range(len(s)):
    if s[i] == 'C':
        for j in range(i, len(s)):
            if s[j] == 'F':
                print('Yes')
                f = True
                break
    if f == False:
        print('No')
        break

Submission status: Wrong Answer

Solution code:
s = input()
f = False
for i in range(len(s)):
	if s[i] == 'C':
		for j in range(i, len(s)):
			if s[j] == 'F':
				print('Yes')
				f = True
				break
		if f == True:
			print('No')
			break

Submission status: Wrong Answer

Solution code:
s=input()
if s.find('F')>s.find('C')>=0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
if s.find('C')>s.find('F')>=0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
if s.find('C')>s.find('F')>0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=list(input())
if 'C' in s and 'F' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

# CODE FESTIVAL 2016 qual C
# Problem A

if __name__ == '__main__':
    s = input()
    cf = 'CF'
    count = 0

    for si in s:
        if si == cf[0]:
            count += 1
        elif count == 1 and si == cf[1]:
            print('Yes')
            exit()

    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
count=0
for i in range(len(s)):
    if s[i]=="C":
        for j in range(len(s[i+1:])):
            if s[j+i+1]=="F" :
                print("Yes")
                count=1
                break
if count==0:
    print("No")

Submission status: Wrong Answer

Solution code:
def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result

arr_data = getinputdata()

s = arr_data[0][0]


cnt1=s.find("C")
cnt2=s.find("F",cnt1)

#print(cnt1,cnt2)

print("Yes" if cnt1<cnt2 else "No")

Submission status: Wrong Answer

Solution code:
s = input()
if 'C' in s and 'F' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
idx1 = s.find('C');

if idx1 >= 0 :
    idx2 = s.find('F');
    if idx2 > idx1 :
        print("Yes");
    else:
        print("No");
else:
    print("No");

Submission status: Wrong Answer

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

s = arr_data[0][0]


cnt1=s.find("C")
cnt2=s.find("F",cnt1)

#print(cnt1,cnt2)


print("Yes" if cnt1<cnt2 else "No")

Submission status: Wrong Answer

Solution code:
import sys
s=input()
if("C" in s and "F" in s):
  for i in range(len(s)):
    if(s[i]=="C"):c=i
  for i in range(len(s))[::-1]:
    if(s[i]=="F"):f=i
  if(c<f):
    print("Yes")
    sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
import sys
s=input()
if("C" in s and "F" in s):
  if(s.index("C")<s.index("F")):
    print("Yes")
    sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
def solve():
    s = input()
    C_index, F_index = -1, -1
    for i, c in enumerate(s):
        if c == "C" and C_index == 0:
            C_index = i
        if c == "F":
            F_index = i
    if C_index < F_index and C_index > -1 and F_index > -1:
        print("Yes")
    else:
        print("No")
        
solve()

Submission status: Wrong Answer

Solution code:
def solve():
    s = input()
    C_index, F_index = 0, 0
    for i, c in enumerate(s):
        if c == "C" and C_index == 0:
            C_index = i
        if c == "F":
            F_index = i
    if C_index < F_index and C_index*F_index > 0:
        print("Yes")
    else:
        print("No")
        
solve()

Submission status: Wrong Answer

Solution code:
def solve():
    s = input()
    C_index, F_index = 0, 0
    for i, c in enumerate(s):
        if c == "C" and C_index == 0:
            C_index = i
        if c == "F":
            F_index = i
    if C_index < F_index and C_index > 0:
        print("Yes")
    else:
        print("No")
        
solve()

Submission status: Wrong Answer

Solution code:
def solve():
    s = input()
    C_index, F_index = 0, 0
    for i, c in enumerate(s):
        if c == "C" and C_index == 0:
            C_index = i
        if c == "F":
            F_index = i
    if C_index < F_index:
        print("Yes")
    else:
        print("No")
        
solve()

Submission status: Wrong Answer

Solution code:
def solve():
    s = input()
    C_index, F_index = 0, 0
    for i, c in enumerate(s):
        if c == "C" and C_index > 0:
            C_index = i
        if c == "F":
            F_index = i
    if C_index < F_index:
        print("Yes")
    else:
        print("No")
        
solve()

Submission status: Wrong Answer

Solution code:
def solve():
    s = list(input())
    
    if "C" in s and "F" in s:
        if s.index("C") < s.index("F"):
            print("Yes")
        else:
            print("No")
    else:
        print("No")


solve()

Submission status: Wrong Answer

Solution code:
import re;print(["Yes","No"][re.match(".C.*F",input())is None])

Submission status: Wrong Answer

Solution code:
import re;print(["Yes","No"][re.match("C.*F",input())is None])

Submission status: Wrong Answer

Solution code:
s=str(input())
p=[chr(i) for i in range(65, 65+26)]
for i in p:
    s=s.replace(i,'')
 
if 'CF' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
l=[chr(i) for i in range(65,65+26)]
l.remove("C")
l.remove("F")
 
for i in l:
  s.replace(i, "")
 
if "CF" in l:
   print("Yes")
else:
   print("No")

Submission status: Wrong Answer

Solution code:
s=input()
l=[chr(i) for i in range(65,65+26)]
l.remove("C")
l.remove("F")
 
for i in l:
  s.replace("i", "")
 
if "CF" in l:
   print("yes")
else:
   print("NO")

Submission status: Wrong Answer

Solution code:
s=input()
l=[chr(i) for i in range(65,65+26)]
l.remove("C")
l.remove("F")
 
for i in l:
  s.replace(i, "")
 
if "CF" in l:
   print("yes")
else:
   print("NO")

Submission status: Wrong Answer

Solution code:
text=input()

if not "c" in text or not "f" in text:
    print("no")

if text.find("c")<text.find("f"):
   print("yes")

Submission status: Wrong Answer

Solution code:
s= str(input())
if('C' in s and 'F' in s):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
a = str(input())
if('C' in a and 'F' in a):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
a = str(input())
if a in 'CF':
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
import re
print"Yes"if re.match("C.*F",raw_input())else"No"

Submission status: Wrong Answer

Solution code:
s=str(input())

p=list('ABDEGHIJKLMNOPQRSTUVWXYZ')

for i in p:
    s.replace(i,'')

if 'CF' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=str(input())
if s.find('C')>0 and s.find('C')>0 and s.find('C')<s.rfind('F'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
y=raw_input()
if 'C' in y and 'F' in y:
    if y.index('F')>y.index('C'):
    	print "Yes"
    else:
    	print "No"
else:
	print "No"

Submission status: Wrong Answer

Solution code:
s = raw_input()
c = s.find('C')
if c <= len(s):
 f = s[c:].find('F')
 if f > 1:
  print 'Yes'
 else:
  print 'No'
print 'No'

Submission status: Wrong Answer

Solution code:
N = input()
for i in range(len(N)):
    for j in range(i,len(N)):
        if N[i] == 'C' and N[j] == 'F':
            print('Yes')
        else:
            print('No')
    break

Submission status: Wrong Answer

Solution code:
N = input()
for i in range(len(N)):
    for j in range(i,len(N)):
        if N[i] == 'C' and N[j] == 'F':
            print('Yes')
            break
    break

Submission status: Wrong Answer

Solution code:
s = raw_input()
s = filter(lambda x: x == 'C' or x == 'F', s)

flag = False
for i in range(len(s)):
    if s[i] == 'C':
        for j in range(i, len(s)):
            if s[j] == 'F':
                print "Yes"
                flag = True

if not flag:
    print "No"

Submission status: Wrong Answer

Solution code:
s = input()
hc = False
for c in s:
	if c == 'C':
		hc = True
	if c == 'F' and hc:
		print('Yes')

Submission status: Wrong Answer

Solution code:
N = input()
for i in range(len(N)):
    for j in range(i,len(N)):
        if N[i] == 'C' and N[j] == 'F':
            print('Yes')

Submission status: Wrong Answer

Solution code:
import re
S1 = input()
p = r'C*F'
result = re.search(p, S1)
if result:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print 'Yes'

Submission status: Wrong Answer

Solution code:
import re
S1 = input()
p = r'C*F'
result = re.search(p, S1)
if result:
    print('yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import re
S1 = input()
p = r'C*F'
result = re.match(p, S1)
if result:
    print('yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if "C" in s and "F" in s:
  a = s.index("C")
  for i in range(a+1,len(s)-1):
    if s[i] == "F":
      print("Yes")
      break
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
flag = 0
if "C" in s and "F" in s:
  a = s.index("C")
  for i in range(a+1,len(s)-1):
    if s[i] == "F":
      print("Yes")
      flag = 1
      break
  if not flag:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
a = ""
i, j = [s.find('C'), s.rfind('F')]

print("Yes" if i <= j else "No")

Submission status: Wrong Answer

Solution code:
str="FCF"
a=[]

for i in range(0,len(str)-1):
    if str[i]=='C':
        a.append('C')
        temp=i
        break

for j in range(temp-1,len(str)-1):
    if str[j]=='F':
        a.append('F')
        break

if len(a)>=2:
    if a[0]=='C' and a[1]=='F':
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if "F" in s:
  while s[-1] != "F":
    s = s.rstrip(s[-1])
    if s == []:
      break
    print(s)
  if "C" in s:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
st = input()
l = len(st)
f = 1
for i in range(l):
    if st[i] == 'C':
        for j in range(i,l
                       ):
            if st[j]=='F':
                print('Yes')
                f = 0
                break
if f:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
hc = False
for c in s:
	if c == 'c':
		hc = True
	if c == 'f' and hc:
		print('Yes')

Submission status: Wrong Answer

Solution code:
str="FESTIVALCODE"
a=[]
temp=0

for i in range(0,len(str)-1):
    if str[i]=='C':
        a.append('C')
        temp=i
        break

for j in range(temp,len(str)-1):
    if str[j]=='F':
        a.append('F')
        break

if len(a)==2:
    if a[0]=='C' and a[1]=='F':
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
str=input()
a=[]

for i in range(0,len(str)-1):
    if str[i]=='C':
        a.append('C')
        temp=i
        break

for j in range(temp-1,len(str)-1):
    if str[j]=='F':
        a.append('F')
        break

if len(a)==2:
    if a[0]=='C' and a[1]=='F':
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = list(input())

offset_f = []
offset_c = []
for i in range(len(s)):
        if s[i] == 'F':
                offset_f += [i]

offset_f.sort()


for i in range(len(s)):
        if s[i] == 'C':
                offset_c += [i]

offset_c.sort()


if offset_f[-1] > offset_c[0]:
        print('YES')
else:
        print('NO')

Submission status: Wrong Answer

Solution code:
#coding: utf-8

import re

s = "CODEFESTIVAL"
if re.search("C.*F", s) is not None:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
#coding: utf-8

import re

s = input()
if re.search("C.*F", s) is not None:
    print('Yes')
else:
    print('None')

Submission status: Wrong Answer

Solution code:
S = raw_input()
tt = S.find("C")
if tt == -1:
    print "No"
else:
    S = S[tt+1:]

t2 = S.find("F")
if t2 == -1:
    print "No"
else:
    print "Yes"

Submission status: Wrong Answer

Solution code:
s = raw_input()
i = s.find('C')
if i < 0:
    print 'No'

s = s[i+1:]
i = s.find('F')
if i < 0:
    print 'No'
else:
    print 'Yes'

Submission status: Wrong Answer

Solution code:
s = raw_input()

c = s.find('C')

t = s[::-1]

f = len(s)-t.find('F')-1

if c < f:
    print 'Yes'
else:
    print 'No'

Submission status: Wrong Answer

Solution code:
s = input()
result = "No"
for i in range(len(s)):
	if s[i] == "C":
		for j in range(i+1, len(s)):
			if s[j] == "F":
				result = "YES"
		break
print(result)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

st = str(raw_input())

if st.find('C') != -1:
    i = st.find('C')
    if st.find('F',i) != -1:
        print 'Yes'
    else:
        print 'No'

Submission status: Wrong Answer

Solution code:
s=input()
a=""
for i in range(len(s)):
    if s[i]=='C':
        a+="c"
    if s[i]=='F':
        a+="f"
if "cf" in a:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = raw_input()
flags = 0
flage = 0
for s in a:
	if s == 'C':
		flags = 1
	if flags == 1 and s == 'F':
		flage = 1

if flage == 1:
	print 'YES'
else:
	print 'NO'

Submission status: Wrong Answer

Solution code:
s = list(str(input()))
ans = False
if 'C' in s:
    c_index = s.index('C')
    for i in range(len(s)):
        char = s[len(s) - i - 1]
        if char == 'F':
            f_index = len(s) - i - 1
            if c_index < f_index:
                ans = True
if ans:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = input()
c_pos = s.find('C')
f_pos = s.find('F')
if (c_pos < f_pos) and (c_pos > -1) and (f_pos > -1):
     print('Yes')
else:
     print('No')

Submission status: Wrong Answer

Solution code:
s = raw_input()

c = s.find('C')

t = s[::-1]

f = len(s)-t.find('F')

if c < f:
    print 'Yes'
else:
    print 'No'

Submission status: Wrong Answer

Solution code:
def solve():
    s = raw_input()
    if 'C' not in s or 'F' not in s:
        return False
    for i in range(s.index('C'), len(s)):
        if s[i] == 'F':
            return True
    return False

if __name__ == '__main__':
    print('YES' if solve() else 'NO')

Submission status: Wrong Answer

Solution code:
s=input()
a=""
for i in range(len(s)):
    if s[i]=='C':
        a+="c"
    if s[i]=='F':
        a+="f"
if a=="cf":
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import sys
s=input()
for i in range(len(s)):
    if s[i]=="C":
        for j in range(i+1,len(s)):
            if s[j]=="F":
                print("Yes")
                sys.exit()
            if j==len(s)-1:
                print("No")
                sys.exit()

Submission status: Wrong Answer

Solution code:
s = input()
if "C" in s and "F" in s:
  if s.index("C") < s.index("F"):
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
# get a string
s = raw_input()

i = s.find('C')
if i < 0:
    print 'No'

s = s[i+1:]
i = s.find('F')
if i < 0:
    print 'No'
else:
    print 'Yes'

Submission status: Wrong Answer

Solution code:
import sys
s=input()
for i in range(len(s)):
    if s[i]=="C":
        for j in range(i+1,len(s)):
            if s[j]=="F":
                print("YES")
                sys.exit()
            if j==len(s)-1:
                print("NO")
                sys.exit()

Submission status: Wrong Answer

Solution code:
S = raw_input()
count = 0
for s in S:
    if s == 'C' and count == 0:
        count += 1
    elif s == 'F' and count == 1:
        break

if count == 2:
    print 'Yes'
else:
    print 'No'

Submission status: Wrong Answer

Solution code:
s = raw_input()

s1 = s.find('C')
s2 = len(s) - 1 - s[::-1].find('F')

if s1 < s2 and s1 >= 0:
    print 'Yes'
else:
    print 'No'