#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  if (s == k || s.substr(0, 7) == k || s.substr(s.length() - 7, 7) == k) {
    cout << "YES" << endl;
    return 0;
  }
  bool p = true;
  int cnt = 0, t = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == k[t]) {
      t++;
      p = true;
    } else if (s[i] == k[t] && p) {
      p = false;
      cnt++;
    }
  }
  if (t == 7 && cnt < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
