#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, S;
  S = "keyence";
  cin >> str;
  int a = 0, b;
  for (int i = 0; i < 7; i++) {
    if (S[i] == str[i]) a++;
  }
  if (a == 7) {
    cout << "YES" << endl;
    return (0);
  }
  b = 7 - a;
  for (int i = 0; i < b; i++) {
    if (S[7 - i] == str[str.length() - i]) a++;
  }
  if (a == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
