#include <bits/stdc++.h>
using namespace std;
int main() {
  int cnt = 0, b[8] = {0}, i, t = -1, m = 0;
  string s, a = "keyence";
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (a[cnt] == s[i]) {
      t = cnt;
      cnt++;
    } else {
      if (t != cnt) {
        t = cnt;
        m++;
      }
    }
  }
  if (m < 2) {
    if (cnt == 7)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
}
