#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "keyence";
  string t;
  cin >> t;
  int n = t.size();
  bool hantei = true;
  int koko = 0;
  for (int i = 0; i < 7; i++) {
    hantei = false;
    for (int j = koko; j < n; j++) {
      if (s[i] == t[j]) {
        hantei = true;
        koko = j + 1;
        break;
      }
    }
    if (hantei == false) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
