#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  string q = "keyence";
  cin >> s;
  int i = 0;
  int t = 0;
  for (int j = 0; j < 7; j++) {
    if (i == 0) {
      if (q[j] != s[j]) i = 1;
      if (q[j] != s[j - 7 + s.length()]) t = 1;
    } else {
      if (q[j] != s[j - 7 + s.length()]) t = 1;
    }
  }
  if (t == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
