#include <bits/stdc++.h>
using namespace std;
long long const INF = 1LL << 60;
int main() {
  string s;
  cin >> s;
  string target = "keyence";
  int index = 0;
  for (auto c : s) {
    if (target[index] == c) {
      index++;
    }
  }
  if (index == target.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
