implicit none
integer(8) :: i,l
character :: s*105
logical :: c,f
read*,s
c = .false.
f = .false.
l = len(trim(s))
do i = 1,l
	if(s(i:i)=='C')then
		c = .true.
	else if(s(i:i)=='F' .and. c)then
		f = .true.
	endif
enddo
if(c .and. f)then
	write(*,'(a)')'Yes'
else
	write(*,'(a)')'No'
endif
end