#include <bits/stdc++.h>
using namespace std;
double e_time(void) {
  static struct timeval now;
  gettimeofday(&now, NULL);
  return (double)(now.tv_sec + now.tv_usec / 1000000.0);
}
template <class T>
void vp(T& a, int p) {
  for (int i = 0; i < p; i++) cout << a[i] << " ";
  cout << endl;
}
template <class T>
T ceilUp(const T& a, const T& b) {
  return (a + b - 1) / b;
}
const long long mod = 1000000009;
inline long long modadd(long long a, long long b) {
  a %= mod;
  b %= mod;
  return (a + b) % mod;
}
inline long long modsub(long long a, long long b) {
  a %= mod;
  b %= mod;
  a -= b;
  a %= mod;
  if (a < 0) a += mod;
  return a;
}
inline long long modmul(long long a, long long b) {
  a %= mod;
  b %= mod;
  return (a * b) % mod;
}
inline long long modeq(long long a, long long b, long long m) {
  a = (a % m + m) % m;
  b = (b % m + m) % m;
  return a == b;
}
long long mypow(long long n, long long p) {
  if (p == 0) return 1;
  if (p == 1) return n;
  long long ret = mypow(n, p / 2);
  ret = ret * ret;
  if (p & 1) ret = ret * n;
  return ret;
}
int main() {
  const string a = "keyence";
  int p = 0;
  string in;
  cin >> in;
  for (int i = 0; i < in.size(); i++) {
    if (p == a.size()) break;
    if (a[p] == in[i]) p++;
  }
  if (p == a.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
