#include <bits/stdc++.h>
using namespace std;
string s, w = "keyence";
int main() {
  cin >> s;
  int p = 0, cnt = 0;
  for (int i = 0; i < w.size(); i++) {
    if (w[i] != s[p]) {
      cnt++;
      if (cnt == 2) {
        cout << "NO";
        return 0;
      }
      while (p < s.size() && w[i] != s[p]) p++;
    }
    p++;
  }
  if (p == s.size())
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
