#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  if (s.find(k) != string::npos) {
    cout << "YES";
  } else {
    int i = 0;
    while (s[i] == k[i]) {
      i++;
    }
    int n = s.size(), l = k.size(), t = s.size();
    while (s[n] == k[l]) {
      n--;
      l--;
    }
    int x = 1;
    while (s[n - x] == k[l]) {
      x++;
    }
    n += x;
    if (i + (t - n) == 7) {
      cout << "YES";
    } else {
      cout << "NO" << i + (t - n);
    }
  }
}
