#include <bits/stdc++.h>
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, -1, 0, 1};
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string t = "keyence";
  int m = s.size() - 1, n = t.size() - 1;
  bool first = true;
  bool ans = true;
  while (n >= 0) {
    if (s[m] != t[n]) {
      if (first == false) {
        ans = false;
        break;
      }
      while (s[m] != t[n] and m >= 0) {
        m--;
      }
      first = false;
    } else {
      m--;
      n--;
    }
  }
  if (ans == false) {
    cout << "NO" << endl;
  } else if (first) {
    cout << "YES" << endl;
  } else if (m < 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
