#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
signed main() {
  string s;
  cin >> s;
  string t = "keyence";
  long long j = 0;
  vector<long long> ch;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == t[j]) {
      j++;
    } else {
      ch.push_back(i);
    }
  }
  bool f = true;
  if (ch.size())
    for (long long i = 0; i < ch.size() - 1; i++) {
      if (ch[i] + 1 != ch[i + 1]) f = false;
    }
  if (f && j >= t.size())
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
}
