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