#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e17;
string S;
string k = "keyence";
int main() {
  cin >> S;
  bool flag = false;
  int idx1 = 0;
  for (int i = 0; i < 7; i++) {
    if (S[i] != k[i]) {
      idx1 = i + 1;
      break;
    }
    if (i == 6) flag = true;
  }
  int idx2 = 0;
  for (int i = 1; i <= 7; i++) {
    if (S[S.size() - i] != k[7 - i]) {
      idx2 = i;
      break;
    }
    if (i == 7) flag = true;
  }
  if (flag || idx1 + idx2 >= 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
