#include <bits/stdc++.h>
using namespace std;
static const int INF = INT_MAX;
static const long long LINF = LLONG_MAX;
static const int MIN = INT_MIN;
static const int MOD = (10 ^ 9 + 7);
int dx[] = {0, -1, 1, 0};
int dy[] = {-1, 0, 0, 1};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  bool flag = false;
  int k = 1;
  while (k <= 7) {
    string str, sub;
    if (k == 1) str = "k", sub = "eyence";
    if (k == 2) str = "ke", sub = "yence";
    if (k == 3) str = "key", sub = "ence";
    if (k == 4) str = "keye", sub = "nce";
    if (k == 5) str = "keyen", sub = "ce";
    if (k == 6) str = "keyenc", sub = "e";
    if (k == 7) str = "keyence", sub = "";
    ++k;
    for (int i = 0; i < s.size() - str.size() + 1; ++i) {
      bool fl = true;
      for (int j = i; j < i + str.size(); ++j) {
        if (s[j] != str[j - i]) fl = false;
      }
      if (fl) {
        for (int j = i + 1; j < s.size() - sub.size() + 1; ++j) {
          fl = true;
          for (int k = j; k < j + sub.size(); ++k) {
            if (s[k] != sub[k - j]) fl = false;
          }
        }
        if (fl) flag = true;
      }
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
