#include <bits/stdc++.h>
using namespace std;
string s, k = "keyence";
int main() {
  cin >> s;
  int n = s.size();
  for (int l = 0; l < 7; l++) {
    string a = k.substr(0, l), b = k.substr(l);
    for (int i = 0; i <= n - l; i++) {
      for (int j = 0; j <= n - 7 + l; j++) {
        string ch1 = s.substr(i, l), ch2 = s.substr(j, 7 - l);
        if (ch1 == a && ch2 == b) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
