#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long MOD = 1e9 + 7;
const int INF = 1 << 30;
int main() {
  string K = "keyence", S;
  cin >> S;
  int id = 0;
  int l = S.size();
  for (int i = 0; i < (int)(l); i++) {
    if (S[i] == K[id]) {
      id++;
    }
  }
  if (id == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
