#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int j = 0;
  int cnt = 0;
  bool dif = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == t[j]) {
      j++;
      dif = false;
    } else {
      if (!dif) {
        dif = true;
        cnt++;
      }
    }
  }
  if (cnt <= 1 && j == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
