#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";
  int t = 0, cnt = 0, in = -1;
  string ans = "";
  bool no = false;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == k[t]) {
      t++;
      if (t == 7 && in == -1) {
        cout << "YES" << endl;
        return 0;
      } else if (t == 7) {
        ans += s.substr(i - (6 - in));
        break;
      }
    } else if (s[i] != k[t] && in == -1) {
      in = t;
      ans = s.substr(0, i);
    }
  }
  if (ans == k)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
