#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 2147483647;
int main() {
  string s;
  cin >> s;
  bool flag;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < s.size() - i + 1; j++) {
      string ss = s;
      ss = ss.erase(i, j);
      if (ss == "keyence") flag = true;
    }
  }
  cout << (flag ? "YES" : "NO") << endl;
  return 0;
}
