#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef long long ll;
int main() {
  ll c = 0, x = 1, g = 0, n, h, w, k, m, l, ans = 0, ptr = 0;
  string s, s1, s2, key;
  cin >> s;
  key = "keyence";
  if (s == key) cout << "YES" << endl;
  for (int i = 0; i < s.size() - 1; i++) {
    for (int j = i; j < s.size(); j++) {
      s1 = "";
      for (int k = 0; k < s.size(); k++) {
        if (i <= k && k <= j)
          continue;
        else
          s1.push_back(s[k]);
      }
      if (s1 == key) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
