#include <bits/stdc++.h>
using namespace std;
vector<int> x = {1, -1, 0, 0};
vector<int> y = {0, 0, -1, 1};
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  int n = s.size();
  if (s == ans) {
    cout << "YES" << endl;
  }
  for (int i = int(-1); i < int(n); ++i) {
    for (int j = int(i + 1); j < int(n + 1); ++j) {
      string a;
      for (int k = int(0); k < int(n); ++k) {
        if (k > i && k < j) {
          continue;
        }
        a.push_back(s[k]);
      }
      if (a == ans) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
