#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int l = s.length();
  string temp = "keyence";
  int l1 = temp.length();
  int p = 0;
  for (int i = 0; i < l; i++) {
    if (s[i] == temp[p]) {
      p++;
    }
  }
  if (p >= l1) {
    printf("YES");
  } else {
    printf("NO");
  }
  return 0;
}
