#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, flg = 0;
  string s, key = "keyence";
  cin >> s;
  j = 0;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == key[j]) {
      if (j == 0 && i != 0) flg++;
      j++;
      if (s[i + 1] != key[j]) {
        flg++;
      }
    }
    if (j == 8) break;
  }
  if (flg > 1 || j != 7)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
