#include<iostream>
using namespace std;
char S[1024];

int main(){
  char K[8]="keyence";
  int p=0,q=0;
  cin >> S;
  int l = strlen(S);
  for(int i=0;i<7;i++){
    if (S[i]==K[i]){p++;}else{break;}
  }
  for(int i=0;i<7;i++){
    if (S[l-1-i]==K[6-i]){q++;}else{break;}
  }
  if (p+q>=7){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
  return 0;
}
