#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "keyence";
  string sr;
  cin >> sr;
  int k = 0;
  int flag = 0;
  for (int i = 0; i < sr.length(); i++) {
    if (sr[i] == s[k]) {
      flag++;
      k++;
    }
  }
  if (flag == 7) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
