#include <bits/stdc++.h>
using namespace std;
template <typename T>
void chmax(T &a, T b) {
  a = max(a, b);
};
template <typename T>
void chmin(T &a, T b) {
  a = min(a, b);
};
const int INF = 100000000;
const long long LINF = 10000000000000000;
const int MOD = 1000000007;
const int dx[9] = {0, 1, 0, -1, 1, 1, -1, -1, 0};
const int dy[9] = {1, 0, -1, 0, 1, -1, -1, 1, 0};
string s;
char k[] = "keyence";
void solve() {
  int ml = 0;
  int mr = 0;
  int c = 0;
  for (int i = 0; i < (s.size()); i++) {
    if (s[i] == k[c]) {
      c++;
      chmax(ml, c);
    } else
      c = 0;
    if (c == 7) break;
  }
  c = 0;
  for (int i = (s.size()) - 1; i >= 0; i--) {
    if (s[i] == k[6 - c]) {
      c++;
      chmax(mr, c);
    } else
      c = 0;
    if (c == 7) break;
  }
  if (ml + mr >= 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> s;
  solve();
  return 0;
}
