#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<T> &v) {
  for (typename vector<T>::size_type i = 0; i < v.size(); ++i)
    out << v[i] << " ";
  out << "\n";
  return out;
}
template <typename T, typename N>
std::ostream &operator<<(std::ostream &out, vector<pair<T, N> > &v) {
  for (size_t i = 0; i < v.size(); ++i)
    out << "(" << v[i].first << ", " << v[i].second << ") ";
  out << "\n";
  return out;
}
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<vector<T> > &v) {
  for (size_t i = 0; i < v.size(); ++i) {
    for (size_t j = 0; j < v[i].size(); ++j) {
      out << v[i][j] << " ";
    }
    out << "\n";
  }
  return out;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  string t = "keyence";
  if (s.substr(0, 7) == t) {
    cout << "YES\n";
    return 0;
  }
  int sz = s.size();
  if (s.substr(sz - 7, 7) == t) {
    cout << "YES\n";
    return 0;
  }
  int i = 0, j = sz - 1;
  while (s[i] == t[i]) {
    ++i;
  }
  int k = t.size() - 1;
  while (s[j] == t[k]) {
    --j;
    --k;
  }
  if (i == 0 || j == sz - 1) {
    cout << "NO\n";
  } else {
    if (i + sz - j - 1 == 7) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
