#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int out = 0;
  int k = 0;
  int l = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[l]) {
      l++;
      if (out == 1) k++;
      out = 0;
    } else {
      if (k && out == 0) k = 1e9;
      out = 1;
    }
  }
  if (k >= 1e9)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
