#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s, t = "keyence";
  cin >> s;
  int f = 0, l = 0;
  for (int i = 0; i < 7; i++) {
    if (s[i] == t[i])
      f++;
    else
      break;
  }
  for (int i = 0; i < 7; i++) {
    if (s[s.size() - 1 - i] == t[6 - i])
      l++;
    else
      break;
  }
  if (f + l == 7 || s == t)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
