#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string k = "keyence";
  long long rec = 0, kn = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == k[kn]) {
      kn++;
      continue;
    } else {
      if (kn == 7 && rec == 1) {
        cout << "NO" << endl;
        return 0;
      }
      while (1) {
        i++;
        if (s[i] == k[kn]) {
          kn++;
          break;
        }
        if (i == s.size() - 1) break;
      }
      rec++;
    }
    if (rec >= 2) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (kn == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
