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