#include <bits/stdc++.h>
#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = i; j <= n; j++) {
      string t = "";
      for (int k = 0; k < n; k++) {
        if (i <= k && k < j) continue;
        t.push_back(s[k]);
        if (t == "keyence") {
          cout << "YES"
               << "\n";
          ;
          return 0;
        }
      }
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
