#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
int main() {
  string s, ss;
  ss = "keyence";
  cin >> s;
  int j = 0;
  int z = 0;
  int i = 0;
  for (i = 0; i < 7; i++) {
    if (s[j] == ss[i])
      j++;
    else if (z == 0) {
      z = 1;
      for (; j < s.size() && s[j] != ss[i]; j++) {
      }
      j++;
    } else
      break;
  }
  if (i == 7 && (z == 0 || j == s.size()))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
