#include <bits/stdc++.h>
using namespace std;
string StripSpace(string str);
int main() {
  const string match = "keyence";
  string input;
  getline(cin, input);
  if (input == match) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 1; i < match.size(); i++) {
    const string f = match.substr(0, i);
    const string l = match.substr(i, match.size());
    bool flag = false;
    string d = input;
    int r = d.find(f);
    if (r != string::npos) {
      flag = true;
      d.erase(d.begin(), d.begin() + r + f.size());
    }
    r = d.find(l);
    if (r != string::npos) {
      if (flag) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
string StripSpace(string str) {
  string r = "";
  for (int i = 0; i < str.size(); i++) {
    if (str[i] != ' ') {
      r.push_back(str[i]);
    }
  }
  return r;
}
