#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1001001001;
const long double PI = (acos(-1));
const int mod = 1e9 + 7;
const int vx[6] = {0, 1, 0, -1, 1, -1};
const int vy[6] = {1, 0, -1, 0, 1, 1};
int f(int a, int b) {
  int res = 0;
  if (a >= b) {
    while (a) {
      a /= 10;
      res++;
    }
  } else {
    while (b) {
      while (b) {
        b /= 10;
        res++;
      }
    }
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string key = "keyence";
  bool k = true;
  ll ok = -1;
  int a = 0;
  for (ll i = 0; i < s.length(); ++i) {
    if (a == 7) break;
    if (s[i] == key[a]) {
      a++;
    } else {
      if (ok == -1)
        ok = i;
      else {
        if (ok + 1 == i) {
          ok++;
          continue;
        } else {
          k = false;
        }
      }
    }
  }
  if (k && a == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  cout << endl;
  return 0;
}
