#include <bits/stdc++.h>
using namespace std;
template <typename _Ty>
ostream& operator<<(ostream& ostr, const vector<_Ty>& v) {
  if (v.empty()) {
    ostr << "{ }";
    return ostr;
  }
  ostr << "{" << v.front();
  for (auto itr = ++v.begin(); itr != v.end(); itr++) {
    ostr << ", " << *itr;
  }
  ostr << "}";
  return ostr;
}
int gcd(int a, int b) {
  if (a < b) a, b = b, a;
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
void solve() {
  string S;
  cin >> S;
  string T = "keyence";
  int index = 0;
  for (int i = 0; i < T.size(); i++) {
    int p = index;
    for (int j = index; j < S.size(); j++) {
      if (T[i] == S[j]) {
        index = j + 1;
        break;
      }
    }
    if (p == index) {
      cout << "NO" << endl;
      exit(0);
    }
  }
  cout << "YES" << endl;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout.precision(20);
  cout << fixed;
  solve();
}
