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

const char* key = "keyence";
const int keylen = 7;

int main(){
  string str;
  cin >> str;
  int f, b;
  for(f=0; f < keylen; f++){
    if(key[f] != str.at(f)) break;
  }
  for(b=0; b < keylen; b++){
    if(key[keylen - b - 1] != str.at(str.length() - b - 1)) break;
  }
  cout << ((f + b) >= keylen? "YES": "NO") << endl;
  
}