#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s, subs1 = "", subs2 = "";
  getline(cin, s);
  string compare = "keyence";
  int me = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == compare[me]) {
      ++me;
      subs1 += s[i];
    } else
      break;
  }
  if (compare == subs1) {
    cout << "YES";
    return 0;
  }
  int her = 6;
  for (int i = s.length() - 1; i > -1; --i) {
    if (s[i] == compare[her]) {
      --her;
      subs2 += s[i];
    } else
      break;
  }
  if (subs2 == compare) {
    cout << "YES";
    return 0;
  }
  reverse(subs2.begin(), subs2.end());
  s.clear();
  s = subs1 + subs2;
  if (s == compare) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
