#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1 = "keyence";
  string s2;
  cin >> s2;
  int index = 0;
  int flag = 1;
  for (int i = 0; i < 7; i++) {
    if (s2[i] != s1[i]) {
      flag = 0;
      index = i;
      break;
    }
  }
  if (flag == 1) {
  } else {
    flag = 0;
    for (int j = 0; j < s2.size() - index - 7; j++) {
      if (s2[index + j] == s1[index]) {
        if (s2.substr(index + j, 7 - index) == s1.substr(index, 7 - index))
          flag = 1;
      }
    }
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
