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