#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  ll ans = 0;
  bool flag = false;
  ll cnt = 0;
  for (ll i = 0; i < s.length(); i++) {
    if (flag == false) {
      if (key[ans] == s[i]) {
        flag = true;
        ans++;
        cnt++;
      }
    } else {
      if (key[ans] == s[i]) {
        flag = true;
        ans++;
      }
    }
  }
  if (ans == 7 && cnt < 2) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
