#include<bits/stdc++.h>
using namespace std;
using ll=long long;

int main(){
  int i,j,cnt=0;
  string s;
  cin>>s;
  for(i=0;i<=7;i++){
    if(s.substr(0,i)+s.substr(s.size()-(7-i),7-i)=="keyence"){
      cout<<"YES";
      return 0;
    }
  }
  cout<<"NO";
}