#include <bits/stdc++.h>
using namespace std;
int n, m;
int rep[100010];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence";
  int k = 0;
  bool band = false;
  string res;
  for (int i = 0; i < n; ++i) {
    if (s[i] == t[k]) {
      k++;
    } else {
      if (!band) {
        while (i < n && s[i] != t[k]) i++;
        i--;
        band = true;
        continue;
      }
    }
    res += s[i];
  }
  if (res == t)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
