#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const long long mod = 1e9 + 7;
int main() {
  long long a = 0, b = 0, c = 0, d = 0, ans = 0, ret = 1000000000000000000LL, n,
            m;
  string s, t;
  t = "keyence";
  bool x = true;
  cin >> s;
  long long i = 0;
  for (int j = 0; j < s.size(); j++) {
    if (s[j] == t[i])
      i++;
    else if (x) {
      if (i == 7) break;
      x = false;
      while (1) {
        if (s[j] != t[i]) {
          j++;
        } else {
          i++;
          break;
        }
        if (j == s.size() - 1) {
          cout << "NO\n";
          goto exit;
        }
      }
    } else {
      cout << "NO\n";
      goto exit;
    }
  }
  if (t.size() == i)
    cout << "YES\n";
  else
    cout << "NO\n";
exit:
  return 0;
}
