#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T>
T gcd(T x, T y) {
  if (x < y) {
    std::swap(x, y);
  }
  int r = x % y;
  while (r != 0) {
    x = y;
    y = r;
    r = x % y;
  }
  return y;
}
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  vector<int> inds;
  int k = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (k < key.size() && s[i] == key[k]) {
      ++k;
    } else {
      inds.push_back(i);
    }
  }
  if (k != key.size()) {
    cout << "NO" << endl;
    return 0;
  }
  if (inds.size() == 0) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < inds.size() - 1; ++i) {
    if (inds[i] + 1 == inds[i + 1])
      continue;
    else {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
