#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int gcd(int a, int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int lcm(int a, int b) { return a * b / gcd(a, b); }
int main() {
  string s;
  cin >> s;
  string ss = "keyence";
  int t = ((ll)(s).size());
  int rec = 0;
  bool ok = 0;
  bool nk = 0;
  bool sk = 0;
  bool ans = 1;
  for (int i = 0; i < (t); ++i) {
    if (s[i] == ss[rec]) {
      rec++;
      ok = 1;
      if (nk) {
        sk == 1;
      }
    } else if (ok) {
      nk = 1;
      if (sk) {
        ans = 0;
      }
    }
    if (rec == 6) break;
  }
  if (ans && rec == 6) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
