#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence";
  string s;
  cin >> s;
  int i, j;
  for (i = 0; i < 7; i++) {
    for (j = 6; j >= i; j--) {
      bool flag = true;
      for (int k = 0; k < i; k++) {
        if (s[k] != key[k]) {
          flag = false;
        }
      }
      for (int l = 6; l >= i; l++) {
        if (s[s.length() - 1 - l] != key[7 - l]) {
          flag = false;
        }
      }
      if (flag == true) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
