#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  string r = "keyence";
  int pos = 0;
  vector<int> p;
  bool flag = false;
  for (int i = 0; i < s.length(); i++) {
    if (r[pos] == s[i]) {
      pos++;
      p.push_back(i);
    }
    if (pos == 7) {
      flag = true;
      break;
    }
  }
  int del = 0;
  if (flag) {
    for (int i = 1; i < p.size(); i++) {
      if (p[i] - p[i - 1] > 1) del++;
    }
  }
  if (del > 1) flag = false;
  if (flag)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
