#include <bits/stdc++.h>
using namespace std;

int main() {
  int i, n;
  bool c = false;
  string s;
  cin >> s;
  n = s.size();
  if (s.substr(n - 7, 7) == "keyence") {
    c = true;
  } else if (s.substr(0, 1) == "k" && s.substr(n - 6, 6) == "eyence") {
    cout << s.substr(0, 1) << "\n";
    c = true;
  } else if (s.substr(0, 2) == "ke" && s.substr(n - 5, 5) == "yence") {
    c = true;
  } else if (s.substr(0, 3) == "key" && s.substr(n - 4, 4) == "ence") {
    c = true;
  } else if (s.substr(0, 4) == "keye" && s.substr(n - 3, 3) == "nce") {
    c = true;
  } else if (s.substr(0, 5) == "keyen" && s.substr(n - 2, 2) == "ce") {
    c = true;
  } else if (s.substr(0, 6) == "keyenc" && s.substr(n - 1, 1) == "e") {
    c = true;
  } else if (s.substr(0, 7) == "keyence")) {
    c = true;
  }
  if (c) {
    cout << "YES"
         << "\n";
  } else {
    cout << "NO"
         << "\n";
  }
  return 0;
}