#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,t="keyence";
  cin>>s;
  if(s.substr(s.size()-7,7)==t||s.substr(0,7)==t)cout<<"YES";
  else{
    int a=0,b=0;
    while(a<7&&s[a]==t[a])a++;
    while(b<7&&s[s.size()-1-b]==t[6-b])b++;
    if(a+b>=7)cout<<"YES";
    else cout<<"NO";
  }
  return 0;
}