#include <bits/stdc++.h>
using namespace std;
int main() {
  string ans = "keyence", s;
  cin >> s;
  int size = (int)(s.length());
  int list[100], count = 0;
  if (ans == s) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i != size; i++) {
    if (ans.substr(i - count, 1) == s.substr(i, 1)) {
      list[i] = 1;
    } else {
      list[i] = 0;
      count++;
    }
  }
  int tr = 0;
  int trg = 0;
  int b = 0;
  for (int i = 0; i != size; i++) {
    if (list[i] == 0) {
      tr++;
    }
    if (list[i] == 1) {
      if (tr == 2) {
        cout << "NO" << endl;
        return 0;
      }
      b++;
    }
  }
  if (b == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
