#include <bits/stdc++.h>
using namespace std;
int main() {
  string rev_s;
  cin >> rev_s;
  string s = rev_s;
  reverse(rev_s.begin(), rev_s.end());
  string key = "keyence";
  string rev_key = "ecneyek";
  int cnt = 0, rev_cnt = 0;
  int n = s.length();
  int key_c = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == key[key_c]) {
      key_c++;
      if (key_c == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      cnt = max(cnt, key_c);
      key_c = 0;
    }
  }
  key_c = 0;
  for (int i = 0; i < n; i++) {
    if (rev_s[i] == rev_key[key_c]) {
      key_c++;
      if (key_c == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      rev_cnt = max(rev_cnt, key_c);
      key_c = 0;
    }
  }
  if (cnt + rev_cnt >= 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
