#include <bits/stdc++.h>
using namespace std;
template <class T, class U>
bool chmax(T &a, const U &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T, class U>
bool chmin(T &a, const U &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return (a * b) / gcd(a, b); }
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
  bool flag = false;
  long long ans = 0, sum = 0;
  string s;
  cin >> s;
  string t = "keyence";
  int cnt = 0;
  int dif = 0;
  bool ok = true;
  bool prev = true;
  for (int i = 0, _i = (s.length()); i < _i; ++i) {
    if (s[i] == t[cnt]) {
      ++cnt;
      ok = true;
    } else {
      ok = false;
      if (ok == false && prev == true) {
        dif++;
      }
    }
    prev = ok;
  }
  if (cnt == 7 && dif < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
