#include <bits/stdc++.h>
using namespace std;
char dif = 'A' - 'a';
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  bool f[7] = {false}, fl[7] = {false};
  string tmp = "keyence";
  for (int i = 0; i < 7; i++) {
    for (int j = 0; j < n; j++) {
      if (tmp[i] == s[j]) f[i] = true;
    }
  }
  bool flag = true;
  for (int i = 0; i < 7; i++) {
    if (f[i] == false) flag = false;
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
