#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
  string s, t="keyence";
  cin>>s;
  for(int i=0; i<8; i++){
    if(s.substr(0,i)+s.substr(s.length()-(7-i))==t){
      cout<<"YES"<<endl;
      return 0;
    }
  }
  cout<<"NO"<<endl;
  return 0;
}