#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {1, -1, 0, 0};
const long long dy[] = {0, 0, -1, 1};
const double PI = 3.14159265358979323846;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
void print1(T begin, T end) {
  while (begin != end) {
    cout << (*begin) << " ";
    *begin++;
  }
  cout << endl;
}
template <typename T>
void print2(T Array, long long height, long long width) {
  for (long long i = 0; i < height; i++) {
    for (long long j = 0; j < width; j++) {
      cout << " " << Array[i][j];
    }
    cout << endl;
  }
}
signed main() {
  string s;
  cin >> s;
  vector<regex> re(8);
  re[0] = "*keyence";
  re[0] = "k*eyence";
  re[0] = "ke*yence";
  re[0] = "key*ence";
  re[0] = "keye*nce";
  re[0] = "keyen*ce";
  re[0] = "keyenc*e";
  re[0] = "keyence*";
  bool ans = false;
  for (auto x : re) {
    ans |= regex_match(s, x);
  }
  puts(ans ? "YES" : "NO");
  return 0;
}
