#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int f_index = 0, l_index = key.size() - 1;
  int f_sum = 0, l_sum = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == key[f_index]) {
      f_sum++;
      f_index++;
      if (f_sum == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      break;
    }
  }
  for (int i = S.size() - 1; i >= 0; i--) {
    if (S[i] == key[l_index]) {
      l_sum++;
      l_index--;
      if (l_sum == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else {
      break;
    }
  }
  if (f_sum + l_sum == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
