#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 (current < 7 && c == keyence[current]) {
      flag = false;
      current++;
    } else {
      if (!flag) {
        flag = true;
        c2++;
        if (c2 > 1) {
          cout << "NO" << endl;
          return 0;
        }
      }
    }
  }
  if (current == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
