#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string t = "keyence";
  for (int i = 0; i < (8); ++i) {
    if (s.substr(0, i) + s.substr(s.size() - 1 - i, 7 - i) == t) {
      cout << "YES" << endl;
      return 0;
    }
  }
  for (int i = 0; i < (s.size() - 1 - 7); ++i) {
    if (s.substr(i, 7) == t) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
