#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  const string k = "keyence";
  int i, j = 0;
  bool g = false;
  while (i < s.length() & j < 7) {
    if (s[i] != k[j]) {
      i++;
    } else {
      i++, j++;
      if (j == 7) g = true;
    }
  }
  cout << (g ? "YES" : "NO") << endl;
  return 0;
}
