#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";
  int pos = 0;
  string ans = "";
  bool flag = false;
  bool ok = true;
  bool tmp = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == key[pos]) {
      ans += s[i];
      pos++;
      tmp = true;
    } else if (pos != 0 && tmp) {
      if (flag) ok = false;
      flag = true;
      tmp = false;
    }
  }
  if (ok && ans == key)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
