#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;
  for (int j = 0; j < s.size(); j++) {
    if (s[j] == t[j])
      a++;
    else
      break;
  }
  c = 6;
  for (int i = s.size() - 1; i >= 0; i--) {
    if (0 > c) break;
    if (s[i] == t[c])
      b++, c--;
    else
      break;
  }
  if (a + b == 7 || a == 7 || b == 7)
    cout << "YES\n";
  else
    cout << "NO\n";
exit:
  return 0;
}
