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