#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int m = 0;
  int count = 0;
  int temp = 0;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    temp++;
    if (s.at(i) == k.at(m)) {
      if (temp != 1) {
        count++;
      }
      temp = 0;
      m++;
    }
  }
  if (m == 7 && count <= 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
