#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  char t[] = "keyence";
  bool found = false;
  cin >> s;
  if (strlen(s) < strlen(t))
    cout << "NO" << endl;
  else {
    for (int i = 0; i < strlen(t); i++) {
      if (s[i] == t[0] && s[strlen(s) - 1] == t[strlen(t) - 1]) {
        found = true;
        break;
      }
      if (find_end(s, s + 101, t, t + strlen(t))) {
        found = true;
      }
    }
    if (found)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
