#include <bits/stdc++.h>
using namespace std;
int x[100001], a[100001], n, q, sum[100001], tmp;
vector<int> v;
int main(void) {
  int itr = 0;
  string obj = "keyence", str;
  cin >> str;
  for (int i = int(0); i < int(str.size()); ++i) {
    if (itr == 7) break;
    if (str[i] == obj[itr]) itr++;
  }
  if (itr == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
