#include <bits/stdc++.h>
using ll = long long;
using namespace std;
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 ans = "keyence";
  if (s == ans) {
    cout << "YES" << endl;
    return 0;
  }
  string tmp = "";
  int j = 0;
  for (ll i = 0; i < s.size(); i++) {
    if (j == ans.size()) break;
    if (ans[j] == s[i]) {
      j++;
      tmp = tmp + s[i];
    }
  }
  if (tmp == ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
