#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(int argc, const char* argv[]) {
  string s, S = "keyence";
  cin >> s;
  int idx = 0;
  string tmp;
  bool flag = false;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] != S[idx]) {
      if (i == 0) {
        for (int j = 1; j < s.length(); j++) {
          tmp = s.substr(j, s.length());
          if (tmp == S) {
            flag = true;
            break;
          }
        }
      } else {
        for (int j = 0; i - 1 + j < s.length(); j++) {
          tmp = s.substr(0, i - 1) + s.substr(i - 1 + j, s.length());
          if (tmp == S) {
            flag = true;
            break;
          }
        }
        if (!flag) {
          break;
        }
      }
    } else {
      idx++;
      if (idx == S.length()) {
        flag = true;
      }
    }
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
