#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int n = s.size();
  int j = 0;
  for (int i = 0; i < 7; i++) {
    if (s.at(i) == k.at(i)) {
      j++;
    } else {
      break;
    }
  }
  if (j == 7) {
    cout << "YES" << endl;
  } else {
    int i = 0;
    while (i < 7 - j) {
      if (s.at(n - 1 - i) != k.at(6 - i)) {
        cout << "NO" << endl;
        break;
      }
      if (i = 6 - j) {
        cout << "YES" << endl;
        break;
      }
      i++;
    }
  }
}
