#include <bits/stdc++.h>
using namespace std;
const char keyence[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int main() {
  char tmp[256] = {0};
  bool bStr[7] = {false};
  int iStr[7] = {0};
  int Pos = 0;
  std::string str;
  cin >> str;
  if ((7 <= str.size()) && (str.size() <= 100)) {
    for (int i = 0; i < 7; i++) {
      iStr[i] = std::count(str.cbegin(), str.cend(), keyence[i]);
    }
  }
  if ((iStr[0] > 0) && (iStr[1] > 2) && (iStr[2] > 0) && (iStr[4] > 0) &&
      (iStr[5] > 0)) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
