#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long takemod(long long a) { return ((a % mod) + mod) % mod; }
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long fast_exp(long long base, long long expo) {
  long long res = 1;
  while (expo > 0) {
    if (expo & 1) res = (res * base) % mod;
    base = (base * base) % mod;
    expo >>= 1;
  }
  return res;
}
long long modinv(long long a) { return takemod(fast_exp(takemod(a), mod - 2)); }
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string s1;
  cin >> s1;
  string s2 = "keyence";
  long long index1 = s2.length() - 1;
  for (long long i = (s1.length()) - 1; i >= (0); i--) {
    if (s1[i] == s2[index1])
      index1 -= 1;
    else
      break;
    if (index1 == -1) break;
  }
  long long index2 = 0;
  for (long long i = (0); i < (s1.length()); i++) {
    if (s1[i] == s2[index2])
      index2 += 1;
    else
      break;
    if (index2 == s2.length()) break;
  }
  if (index1 - 1 <= index2) {
    cout << "YES"
         << "\n";
  } else
    cout << "NO"
         << "\n";
}
