#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence";
  string aa;
  int n = 0;
  cin >> aa;
  int b[7];
  for (int i = 0; i < aa.size(); i++) {
    if (key[n] == aa[i]) {
      b[n] = i;
      n++;
      if (n == 7) {
        break;
      }
    }
  }
  if (n != 7) {
    cout << "NO" << endl;
  }
  bool ren = true;
  for (int i = 0; i < 6; i++) {
    int t = b[i + 1] - b[i];
    if (t != 1 && ren == false) {
      cout << "NO" << endl;
      return 0;
    }
    if (t != 1) {
      ren = false;
    }
  }
  cout << "YES" << endl;
  return 0;
}
