#include <bits/stdc++.h>
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[]) {
  string s, t;
  bool f = false;
  int cnt = 0;
  t = "keyence";
  cin >> s;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == t[i] && f == false) {
      cnt++;
      if (i == 6) {
        cout << "YES" << endl;
        return 0;
      }
      continue;
    } else {
      f = true;
      s.erase(s.begin(), s.begin() + i + 1);
      t.erase(t.begin(), t.begin() + cnt);
      if (s.find(t) != string::npos) {
        cout << "YES" << endl;
        return 0;
      }
    }
    cout << "NO" << endl;
    return 0;
  }
}
