#include <bits/stdc++.h>
using namespace std;
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
int prime[] = {2,  3,  5,  7,  11, 13, 17, 19, 23, 29, 31, 37, 41,
               43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97};
const long long inf = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  bool ok = false;
  for (int i = 0; i < 9; i++) {
    string x = s;
    x.erase(i, s.size() - 7);
    if (x == "keyence") {
      ok = true;
    }
  }
  if (ok)
    cout << "YES";
  else
    cout << "NO";
  cout << endl;
}
