#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main(void) {
  string keyence = "keyence";
  bool flag = false;
  ll current = 0;
  ll c2 = 0;
  string S;
  cin >> S;
  for (auto &c : S) {
    if (c == keyence[current]) {
      if (flag) {
        c2++;
        flag = false;
        if (c2 > 1) break;
      }
      current++;
    } else {
      flag = true;
    }
    if (current == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
