#include <bits/stdc++.h>
using namespace std;
long long MOD = 1e9 + 7;
void chmin(long long &a, long long b) {
  if (a > b) a = b;
}
int main() {
  long long i, j;
  string str;
  cin >> str;
  long long judge = 0;
  string key = "keyenceA";
  long long count = 0;
  for (i = 0; i < str.size() && judge <= 1; i++) {
    if (key[count] == str[i])
      count++;
    else {
      judge++;
      for (; i < str.size() && judge <= 1 && key[count] != str[i]; i++) {
      }
      if (key[count] == str[i]) count++;
    }
  }
  if (judge <= 1 && count == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
