#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  if (s == t) {
    cout << fixed << "YES" << endl;
    return 0;
  }
  int index = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[index]) {
      index++;
    }
  }
  if (index == t.size()) {
    cout << fixed << "YES" << endl;
    return 0;
  }
  if (s[0] != t[0]) {
    cout << fixed << "NO" << endl;
    return 0;
  }
  int f = -1, sec = -1;
  index = 1;
  for (int i = 1; i < s.size(); i++) {
    if (s[i] != t[index]) {
      f = i;
    } else if (f > 0) {
      sec = i;
    }
  }
  string u = s.substr(0, f);
  u += s.substr(sec, s.size() - sec);
  if (t == u) {
    cout << fixed << "YES" << endl;
  } else {
    cout << fixed << "NO" << endl;
  }
}
