#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int m = 0;
  int count = 0;
  int temp = 0;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    temp++;
    if (s.at(i) == k.at(m)) {
      if (temp != 1) {
        count++;
      }
      if (count > 1) {
        cout << "NO" << endl;
        return 0;
      }
      temp = 0;
      m++;
      if (m == 7) {
        if (i == n - 1 || count == 0) {
          cout << "YES" << endl;
        } else {
          cout << "NO" << endl;
        }
        return 0;
      }
    }
  }
}
