#include <bits/stdc++.h>
using namespace std;
bool prime(long long n) {
  for (long long i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) return false;
  }
  return n != 1;
}
long long gcd(long long x, long long y) {
  if (x < y) swap(x, y);
  if (y == 0) return x;
  return gcd(y, x % y);
}
long long lcm(long long x, long long y) { return x * y / gcd(x, y); }
long long kai(long long n) {
  if (n == 0) return 1;
  return (kai(n - 1) * n) % 1000000007;
}
long long mod_pow(long long x, long long y, long long mod) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) {
      res = res * x % mod;
    }
    x = x * x % mod;
    y >>= 1;
  }
  return res;
}
long long mystoi(string s) {
  long long cnt = 0;
  for (long long i = 0; i < s.size(); i++) {
    cnt += (long long)(s[i] - '0') * mod_pow(10, s.size() - i - 1, 1000000007);
  }
  return cnt;
}
signed main() {
  string s;
  cin >> s;
  if (s == "keyence") cout << "YES" << endl;
  if (s.substr(0, 1) == "k" && s.substr(s.size() - 6, 6) == "eyence")
    cout << "YES" << endl;
  else if (s.substr(0, 2) == "ke" && s.substr(s.size() - 5, 5) == "yence")
    cout << "YES" << endl;
  else if (s.substr(0, 3) == "key" && s.substr(s.size() - 4, 4) == "ence")
    cout << "YES" << endl;
  else if (s.substr(0, 4) == "keye" && s.substr(s.size() - 3, 3) == "nce")
    cout << "YES" << endl;
  else if (s.substr(0, 5) == "keyen" && s.substr(s.size() - 2, 2) == "ce")
    cout << "YES" << endl;
  else if (s.substr(0, 6) == "keyenc" && s.substr(s.size() - 1, 1) == "e")
    cout << "YES" << endl;
  else if (s.substr(s.size() - 7, 7) == "keyence")
    cout << "YES" << endl;
  else if (s.substr(0, 7) == "keyence")
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  getchar();
  getchar();
  return 0;
}
