#include <bits/stdc++.h>
using namespace std;
int main() {
  char key[8] = "keyence";
  string str;
  int count = 0;
  int halfpoint = 0;
  bool miss = false;
  bool yes = false;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == key[count]) {
      count++;
      if (count == 7) {
        cout << "YES";
        return 0;
      }
    } else if (count > 0) {
      halfpoint = count;
      for (int j = i; j < str.length(); j++) {
        cout << i << " " << j << endl;
        if (str[j] == key[count]) {
          count++;
        } else
          count = halfpoint;
        if (count == 7) {
          cout << "YES";
          return 0;
        }
      }
      count = 0;
    } else
      count = 0;
  }
  cout << "NO";
  return 0;
}
