#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const int MOD = 1e9 + 7;
const int dy[] = {1, 0, -1, 0};
const int dx[] = {0, 1, 0, -1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string key = "keyence";
  bool OK = false;
  vector<int> vec;
  for (int i = 0; i < s.size(); i++)
    if (s[i] == 'k') vec.push_back(i);
  for (int k = 0; k < vec.size(); k++) {
    int pos = 0;
    bool tmp = false;
    bool flag = false;
    bool ok = true;
    string ans = "";
    for (int i = vec[k]; i < s.size(); i++) {
      if (ans == key) break;
      if (s[i] == key[pos]) {
        ans += s[i];
        pos++;
        tmp = true;
      } else if (tmp) {
        if (flag) ok = false;
        flag = true;
        tmp = false;
      }
    }
    if (ok && ans == key) OK = true;
  }
  if (OK)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
