character(102) S,ans
read*,S
do i=1,len_trim(S)+1
  do j=i,len_trim(S)+1
    if(i==1)then
      ans=trim(S(j+1:))
    else
      ans=S(1:i-1)//S(j+1:)
    end if
    if(trim(ans)=="keyence")then
      print"(A)","YES"
      STOP
    endif
  end do
end do
print"(A)","NO"
end