#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ss;
  cin >> ss;
  if (ss.size() <= 7) {
    if (ss == "keyence")
      cout << "YES\n";
    else
      cout << "NO";
    return 0;
  }
  for (int i = 0; i < ss.size() - 6; i++) {
    s = ss;
    s.erase(i, s.size() - 7);
    if (s == "keyence") {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
