#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll gcd(ll a, ll b) {
  if (b > a) swap(a, b);
  if (b == 0) return a;
  return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
  ll g = gcd(a, b);
  return a / g * b;
}
ll rep_jijo(ll n, ll x) {
  if (x == 0) return 1;
  if (x % 2 == 0) {
    ll t = rep_jijo(n, x / 2);
    return t * t;
  }
  return n * rep_jijo(n, x - 1);
}
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int len = s.size();
  int rm = len - 7;
  for (int i = 0; i < (int)(len - 6); i++) {
    string t = s;
    t.erase(i, rm);
    if (k == t) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
