#include <iostream>
#include <string>
using namespace std;

int main(){
  string s;
  string t = "keyence";

  cin >> s;

  for (int i = 1; i <= 7 ; i++) {
    string s1 = s.substr(0, i);
    string s2 = s.substr(s.size() - 7 + i);
    string s3 = s1 + s2;
    if (t == s3) {
      cout << "YES" << endl;
      return 0;
    }
  }

  cout << "NO" << endl;
  return 0;
}
