#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  size_t b = a.length();
  if (a.find("k") != -1 && a.find("eyence") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("ke") != -1 && a.find("yence") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("key") != -1 && a.find("ence") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("keye") != -1 && a.find("nce") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("keyen") != -1 && a.find("ce") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("keyenc") != -1 && a.find("e") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else if (a.find("keyence") != -1)
    cout << "YES" << endl;
  else if (a.find("k") != 0 && a.rfind("e") + 1 == b)
    cout << "NO" << endl;
  else
    cout << "NO" << endl;
}
