#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence", S;
  bool ans = false;
  cin >> S;
  int i = 0, j = 0;
  while (i != S.size()) {
    if (S[i] == key[j]) {
      i++;
      j++;
    } else {
      i++;
    }
    if (j == 6) {
      ans = true;
      break;
    }
  }
  if (ans) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
