#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, base = "keyence";
  cin >> s;
  if (s == base) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < s.size() - 6; i++) {
    int now = 0;
    for (int j = 0; j < s.size(); j++) {
      if (i == j) {
        j += s.size() - base.size() - 1;
      } else {
        if (base[now] != s[j]) {
          break;
        } else
          now++;
      }
    }
    if (now == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
