#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s, ss = "keyence";
  cin >> s;
  int n = s.length(), i, j, k, x;
  bool found = false;
  for (i = 0; i < n; i++) {
    for (j = 1; j <= 7; j++) {
      x = s.find(ss.substr(0, j));
      if (x == string::npos) continue;
      if (j == 7)
        found = true;
      else if (s.substr(x + j).find(ss.substr(j)) != string::npos)
        found = true;
    }
  }
  if (found)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
