#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long linf = 1LL << 62;
const int mod = 1e9 + 7;
const int MAX = 510000;
const int V = 100005;
long long dy[8] = {1, 0, -1, 0, 1, -1, 1, -1};
long long dx[8] = {0, 1, 0, -1, 1, -1, -1, 1};
const double pi = acos(-1);
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
template <typename T1, typename T2>
inline void print2(T1 a, T2 b) {
  cout << a << " " << b << endl;
}
int main() {
  string s;
  cin >> s;
  long long n = s.size();
  for (long long i = 0; i < (n); i++) {
    for (long long j = (i); j < (n); j++) {
      string t = s;
      t.erase(i, j);
      if (t == "keyence") {
        puts("YES");
        return 0;
      }
    }
  }
  puts("NO");
}
