#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long m = 1000000007) {
  long long ans = 1;
  while (y > 0) {
    if (y & 1) {
      ans = (ans * x) % m;
    }
    x = (x * x) % m;
    y /= 2;
  }
  return ans % m;
}
long long modInverse(long long a, long long m = 1000000007) {
  long long m0 = m;
  long long y = 0, x = 1;
  if (m == 1) return 0;
  while (a > 1) {
    long long q = a / m;
    long long t = m;
    m = a % m, a = t;
    t = y;
    y = x - q * y;
    x = t;
  }
  if (x < 0) x += m0;
  return x;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long i, j, k;
  long long n;
  string s, t = "keyence";
  cin >> s;
  n = s.length();
  if (s.find(t) != -1)
    cout << "YES";
  else {
    j = 0;
    i = 0;
    while (i < n && i < t.length() && s[i] == t[i]) i++;
    j += i;
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    i = 0;
    while (i < n && i < t.length() && s[i] == t[i]) i++;
    j += i;
    if (j == t.length())
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
