#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int tmp = 0, j = 0;
  bool ok = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[j] && tmp <= 1) {
      j++;
      ok = false;
    } else if (tmp == 1) {
      tmp = 0, j = 0;
    } else if (ok = false) {
      tmp++;
      ok = true;
    }
    if (j == t.size() - 1) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
