#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  bool isok = false;
  if (s.substr(0, 3) == "key" && s.substr(s.length() - 4, 4) == "ence")
    isok = true;
  else if (s.substr(0, 7) == "keyence" ||
           s.substr(s.length() - 7, 7) == "keyence")
    isok = true;
  cout << (isok ? "YES" : "NO") << endl;
  return 0;
}
