#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;
  long long n = s.size();
  for (long long(i) = (0); (i) < (n); ++(i)) {
    for (long long(j) = (i); (j) < (n); ++(j)) {
      for (long long(k) = (j); (k) < (n); ++(k)) {
        for (long long(l) = (k); (l) < (n); ++(l)) {
          string first = s.substr(i, j - i + 1);
          string second = s.substr(k, l - k + 1);
          if (first + second == "keyence") {
            puts("YES");
            return 0;
          }
        }
      }
    }
  }
  puts("NO");
  return 0;
}
