#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, key = "keyence";
  cin >> s;
  int n = s.size(), now = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == key[now]) {
      if (now == 6) {
        cout << "YES" << endl;
        return 0;
      } else
        now++;
    } else if (s.substr(i) == key) {
      cout << "YES" << endl;
      return 0;
    } else {
      while (s[i] != key[now] && i < n) i++;
      if (s.substr(i) == key.substr(now)) {
        cout << "YES" << endl;
        return 0;
      } else {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
}
