#include <bits/stdc++.h>
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, -1, 0, 1};
using namespace std;
bool solve(string s, string t, int m, int n) {
  if (n < 0) return true;
  if (m < 0) return false;
  if (s[m] == t[n]) {
    return solve(s, t, m - 1, n - 1);
  }
  return solve(s, t, m - 1, n);
}
int main(void) {
  string s;
  cin >> s;
  string t = "keyence";
  int m = s.size(), n = t.size();
  if (solve(s, t, m - 1, n - 1)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
