#include <bits/stdc++.h>
int main(void) {
  using namespace std;
  bool res = false;
  string str, str2, key = "keyence";
  cin >> str;
  int length = str.length();
  if (str == key) {
    res = true;
  }
  for (int i = 0; i < 7; i++) {
    str2 = str.substr(0, i) + str.substr(length - (7 - i));
    if (key == str2) {
      res = true;
    }
  }
  if (res) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
