#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int st = 0;
  int fin = 0;
  int index = 0;
  int ans = 1;
  string key = "keyence`";
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s.at(i) == key.at(index)) {
      index++;
      if (st) fin = 1;
    } else {
      if (st && fin) {
        ans = 0;
        break;
      }
      st = 1;
    }
  }
  if (ans && index == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
