#include <bits/stdc++.h>
using namespace std;
map<int, int> dp;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
unsigned long H, W;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  string answer = "keyence";
  cin >> S;
  unsigned long n = S.size();
  if (n < 7) {
    cout << "NO" << endl;
    return 0;
  }
  int i = 0;
  bool front_flag = true;
  while (S[i] != answer[0]) {
    ++i;
    front_flag = false;
    if (i > n - 7) {
      cout << "NO" << endl;
      return 0;
    }
  }
  int j = n;
  bool last_flag = true;
  while (S[j] != answer[7]) {
    --j;
    last_flag = false;
    if (j < 7) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (front_flag || last_flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 1;
}
