#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  string k = "keyence";
  int pos = 0;
  for (int i = 0; i < s.length(); i++) {
    if (k[pos] == s[i]) {
      pos++;
      if (pos == k.length()) break;
    }
  }
  (pos == k.length()) ? cout << "YES" << '\n' : cout << "NO" << '\n';
  return 0;
}
