#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, -1, 0, 0}, dy[4] = {0, 0, 1, -1};
int absint(int a) { return max(a, -a); }
int main() {
  string s, key = "keyence";
  int i, j = 0, k = 0;
  cin >> s;
  for (i = 0; i < key.length(); i++) {
    if (s[i] == key[i]) j++;
  }
  for (i = 0; i < key.length(); i++) {
    if (s[s.length() - i] == key[key.length() - i]) k++;
  }
  if (j + k == 8 || (j == 7 && k == 7))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
