#include <bits/stdc++.h>
using vi = std::vector<int>;
using vvi = std::vector<std::vector<int>>;
using vd = std::vector<double>;
using vvd = std::vector<std::vector<double>>;
using vll = std::vector<long long int>;
using vvll = std::vector<std::vector<long long int>>;
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string keyence = "keyence";
  int j = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == keyence[j]) j++;
    if (j == 6) break;
  }
  if (j == 6)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
