#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  string key = "keyence";
  cin >> s;
  int j = 0, flag = 0;
  for (int i = 0; i < s.size(); i++) {
    if (flag == 0) {
      if (s[i] != key[j]) {
        flag = 1;
      } else {
        j++;
      }
    } else if (flag == 1) {
      if (s[i] == key[j]) {
        flag = 2;
        j++;
      } else if (i == s.size() - 1) {
        if (j == key.size() - 1) {
          flag = 0;
        } else {
          cout << "NO" << endl;
          return 0;
        }
      }
    } else if (flag == 2) {
      if (s[i] != key[j]) {
        cout << "NO" << endl;
        return 0;
      } else {
        j++;
      }
    }
  }
  if (flag == 0 || flag == 2) {
    cout << "YES" << endl;
    return 0;
  }
}
