#include <bits/stdc++.h>
using namespace std;
template <typename X>
bool exist(vector<X> vec, X item) {
  return find(vec.begin(), vec.end(), item) != vec.end();
}
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string a;
  cin >> a;
  string cpr = "keyence";
  long long idx = 0;
  for (long long i = (long long)0; i < (long long)a.size(); i++) {
    if (a[i] == cpr[idx]) {
      idx++;
    }
  }
  if (idx == cpr.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
