#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;
  }
}
string t = "keyence";
string s;
signed main() {
  cin >> s;
  long long idx = 0;
  bool ok = false;
  for (long long(i) = (0); (i) < (s.size()); ++(i)) {
    if (s[i] == t[idx]) {
      idx++;
    }
    if (idx >= t.size()) {
      ok = true;
      break;
    }
  }
  puts(ok ? "YES" : "NO");
  return 0;
}
