#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
ll mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  bool ok = true;
  string key = "keyence";
  int idx = 0;
  int i = 0;
  while (i < s.size()) {
    if (s[i] == key[idx]) {
      idx++;
      i++;
      ok = true;
      if (i > s.size()) {
        cout << "NO" << endl;
        return 0;
      }
    } else {
      if (ok == false) {
        cout << "NO" << endl;
      }
      while (s[i] != key[idx]) {
        i++;
        ok = false;
        if (i > s.size()) {
          cout << "NO" << endl;
          return 0;
        }
      }
    }
  }
  cout << "YES" << endl;
  return 0;
}
