#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  if (s.size() < 7) {
    cout << "NO" << endl;
    return 0;
  }
  int i = 0, j = 0;
  while (s[i] == k[j]) {
    i++;
    j++;
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  while (s[i] != k[j]) {
    i++;
    if (i == s.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  while (s[i] == k[j]) {
    i++;
    j++;
    if (i == s.size() && j == 7) {
      cout << "YES" << endl;
      return 0;
    } else if (i == s.size())
      break;
  }
  cout << "NO" << endl;
}
