#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a > b) return false;
  a = b;
  return true;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a < b) return false;
  a = b;
  return true;
}
string key = "keyence";
string s;
int main() {
  cin >> s;
  int num = 0;
  int i = 0, j = s.size() - 1, k = 6;
  while (i < 6 && s[i] == key[i]) {
    i++;
    num++;
  }
  while (k >= 0 && s[j] == key[k]) {
    j--;
    k--;
    num++;
  }
  cout << (num >= 7 ? "Yes\n" : "NO\n");
}
