#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  int i, ind = 0, l = k.length(), c = 0, fg = 1;
  for (i = 0; s[i]; i++) {
    if (s[i] == k[ind]) {
      ind++;
      fg = 1;
    } else if (c == 2)
      break;
    else if (fg == 1) {
      c++;
      fg = 0;
    }
  }
  if (ind == l)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
