#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  string r = "keyence";
  int pos = 0;
  for (int i = 0; i < s.length(); i++) {
    if (r[pos] == s[i]) {
      pos++;
    }
    if (pos == 7) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
