#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class t, class u>
bool chmax(t &a, u b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class t, class u>
bool chmin(t &a, u b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  string s;
  cin >> s;
  int l = s.size();
  if (l == 7) {
    if (s == "keyence") {
      cout << "YES" << endl;
      return 0;
    } else {
      cout << "NO" << endl;
      return 0;
    }
  } else if (s.substr(0, 7) == "keyence") {
    cout << "YES" << endl;
    return 0;
  } else if (s.substr(l - 7, 7) == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (size_t i = 1; i < 7; i++) {
    string keyence = "keyence";
    if (s.substr(0, i) == keyence.substr(0, i) &&
        s.substr(l - 1 - i, i) == keyence.substr(7 - 1 - i, i)) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
