#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string key = "keyence";
  int frequencyOfKey[26] = {0};
  for (int i = 0; i < key.length(); ++i) {
    frequencyOfKey[(int)(key[i] - 'a')]++;
  }
  string input;
  cin >> input;
  int frequencyOfInput[26] = {0};
  for (int i = 0; i < (int)(input.size()); ++i) {
    frequencyOfInput[(int)(input[i] - 'a')]++;
  }
  for (int i = 0; i < 26; ++i) {
    if (frequencyOfKey[i]) {
      if (frequencyOfKey[i] > frequencyOfInput[i]) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << "YES" << endl;
  return 0;
}
