#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  char k[] = "keyence";
  if (S[0] != k[0]) {
    if (S.substr(S.size() - 7) == k)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  } else if (S[S.size() - 1] != k[6]) {
    if (S.substr(0, 7) == k)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  } else {
    int l = 0, r = 6;
    while (S[l] == k[l]) l++;
    while (S[r - 6 + S.size() - 1] == k[r]) r--;
    if (l > r)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
