#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; }
int main() {
  string s;
  cin >> s;
  int n = s.length();
  string key = "keyence";
  int k = 0;
  for (int i = 0; i < (int)(n); i++) {
    if (s[i] == key[k]) {
      k++;
    }
    if (k == 6) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
