#include <bits/stdc++.h>
using namespace std;
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
long long lin() {
  long long x;
  scanf("%lld", &x);
  return x;
}
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int m = 8;
  for (int i = 0; i < m; ++i) {
    int j = m - i;
    string t = s.substr(0, i);
    t += s.substr(n - j, j);
    if (t == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
