#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < (int)s.length() - 6; i++) {
    if (s.substr(i, 7) == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  if (s.substr(0, 3) == "key" && s.substr(s.length() - 4, 4) == "ence")
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
