#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  string a = "keyence";
  long long e = s.size();
  long long b = 0;
  long long c = 0;
  long long d = 0;
  long long cnt = 0;
  if (s == a) {
    cout << "YES" << endl;
  } else {
    for (long long i = 0; i < e; i++) {
      if (s.at(i) == a.at(b)) {
        if (b == 0) {
          c++;
        } else if (b == 6) {
          d = i;
        }
        b++;
        cnt++;
      }
      if (c == 2) {
        cnt = 0;
        break;
      }
      if (6 < b) {
        break;
      }
    }
    if (cnt == a.size()) {
      if (c * d == 0) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    } else {
      cout << "NO" << endl;
    }
  }
}
