#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  string v = "keyence";
  cin >> s;
  bool f = false;
  for (int i = 0; i < v.length(); i++) {
    if (!f && s[i] != v[i]) {
      f = true;
      while (s[i] != v[i]) {
        i++;
        if (i > v.length()) {
          cout << "NO" << endl;
          return 0;
        }
      }
    } else if (f && s[i] != v[i]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
