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