#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string compare = "keyence";
  int me = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == compare[me]) ++me;
  }
  (me == 7) ? cout << "YES" : cout << "NO";
  return 0;
}
