#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  int ct = 0;
  int ct2 = 0;
  string key = "keyence";
  while (s[ct] == key[ct2]) {
    ct++;
    ct2++;
    if (ct2 == 7) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  while (s[ct] != key[ct2]) {
    ct++;
    if (ct >= (int)s.size()) {
      cout << "No" << endl;
      return 0;
    }
  }
  while (s[ct] == key[ct2]) {
    ct++;
    ct2++;
    if (ct2 == 7) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
