#include <bits/stdc++.h>
using namespace std;
template <class t>
using vc = vector<t>;
template <class t>
using vvc = vector<vector<t>>;
template <class t, class u>
ostream &operator<<(ostream &os, const pair<t, u> &p) {
  return os << "( " << p.first << ", " << p.second << " )";
}
template <class t>
ostream &operator<<(ostream &os, const vc<t> &second) {
  os << "[ ";
  for (int i = 0; i < second.size(); i++) {
    os << second[i];
    if (i != second.size() - 1) {
      os << ", ";
    }
  }
  return os << " ]";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  string ref = "keyence";
  vector<vector<string>> meme;
  for (int i = 1; i < ref.size(); i++) {
    auto left = ref.substr(0, i);
    auto right = ref.substr(i);
    meme.push_back({left, right});
  }
  if (s.find(ref) != string::npos) {
    cout << "YES\n";
    return 0;
  }
  for (auto &m : meme) {
    if (s.find(m[0]) != string::npos && s.find(m[1]) != string::npos) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
