#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int f1 = 0, f2 = 0, index = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[index]) {
      index++;
      f1 = 1;
    } else {
      if (f1) {
        f2++;
        f1 = 0;
      }
    }
  }
  if (f2 > 1 || index != t.size()) {
    cout << fixed << "NO" << endl;
  } else {
    cout << fixed << "YES" << endl;
  }
}
