#include <bits/stdc++.h>
using namespace std;
const long MOD = 1e9 + 7;
const long LINF = 1e13;
const long LLINF = 1e18;
const long ALPHABET = 26;
template <class T>
void Swap(T& r, T& l) {
  T tmp = r;
  r = l;
  l = tmp;
}
int main() {
  long n, w, h, a, b, c, d;
  string s;
  cin >> s;
  bool ans = false;
  string key = "keyence";
  int count = 0;
  int removesize = s.size() - 7;
  for (int i = 0; i < removesize; i++) {
    string mat = "";
    for (int k = 0; k < s.size(); k++) {
      if (k >= i && k < i + removesize) {
      } else {
        mat += s[k];
      }
    }
    if (mat == key) ans = true;
  }
  if (removesize == 0) {
    if (s == key) ans = true;
  }
  if (ans) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
