#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string hoge = "keyence";
  for (int i = 0; i < s.length() - hoge.length() + 1; ++i) {
    int itr = 0;
    for (int q = i; q < s.length() && itr != hoge.length(); ++q) {
      if (s[q] == hoge[itr]) {
        itr++;
      } else
        break;
    }
    if (itr == hoge.length()) {
      cout << "YES" << endl;
      return 0;
    }
    for (int j = i + itr; j < s.length(); ++j) {
      int now = itr;
      int go = j;
      while (now != hoge.length() && go < s.length()) {
        if (s[go] == hoge[now]) {
          now++;
          go++;
        } else
          break;
      }
      if (now == hoge.length()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
