#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 20;
const int MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  int r, c = 0;
  bool isON = false;
  char k[] = "keyence";
  bool isUsed = false;
  bool isAns = false;
  for (unsigned int i = s.length() - 7; i < s.length(); ++i, c++) {
    if (s[i] != k[c]) break;
  }
  if (c == 7) {
    cout << "YES" << endl;
    return 0;
  }
  c = 0;
  for (unsigned int i = 0; i < s.length(); ++i) {
    cerr << c << endl;
    if (s[i] == k[c]) {
      c++;
      if (isON) {
        isUsed = true;
        isON = false;
        r = i;
      }
    } else {
      if (isUsed) {
        c = r;
      }
      if (!isON) {
        r = c;
      }
      isON = true;
    }
  }
  if (c == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
