#include <bits/stdc++.h>
using namespace std;
using lint = long long;
const lint inf = 1LL << 60;
const lint mod = 1000000007;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence";
  int nt = t.size();
  if (n < nt) {
    cout << "NO"
         << "\n";
    return 0;
  }
  if (s.substr(0, nt) == t || s.substr(n - nt, nt) == t) {
    cout << "YES"
         << "\n";
    return 0;
  }
  for (int i = 1; i < nt; ++i) {
    if (s.substr(0, i) == t.substr(0, i) &&
        s.substr(n - i, i) == t.substr(nt - i, i)) {
      cout << "YES"
           << "\n";
      return 0;
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
