#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  bool ok[7];
  for (int i = 0; i < 7; i++) ok[i] = false;
  string c;
  int st = 0;
  int suc = 0, rem = 0;
  for (int i = 0; i < k.length(); i++) {
    for (int j = st; j < s.length(); j++) {
      if (s[j] == k[i]) {
        st = j + 1;
        ok[i] = true;
        suc = 0;
        break;
      } else {
        if (suc == 0) rem++;
        suc++;
      }
    }
  }
  if (rem > 1)
    cout << "NO"
         << "\n";
  else if (ok[6] == true)
    cout << "YES"
         << "\n";
}
