#include <bits/stdc++.h>
using namespace std;
int abs(int a, int b) {
  int c = max(a, b) - min(a, b);
  return c;
}
priority_queue<int, vector<int>, greater<int> > qu;
signed main() {
  cin.tie(NULL);
  ios::sync_with_stdio(false);
  int bit[8] = {};
  int c = 0, d = 0, e = 10, f = 0, g = 0;
  string a, b = "keyence";
  cin >> a;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] == b[c])
      c++, d = 0;
    else
      d = 1;
    if (e != d) bit[f] = d, f++, e = d;
  }
  for (int i = 0; i < f; i++) {
    g += bit[i];
  }
  if (g < 2)
    cout << "YES";
  else
    cout << "NO";
}
