#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, x = "keyence";
  cin >> s;
  int f = 0, j = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != x[j]) f++;
    while (s[i] != x[j]) {
      i++;
    }
    while (s[i] == x[j] && i < s.size() - 1) {
      i++;
      j++;
    }
  }
  if (f == 1 || f == 0) {
    if (j == x.size() - 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
