#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, m = "keyence";
  cin >> s;
  int n = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == m[n]) n++;
  }
  cout << (n == 7 ? "YES" : "NO") << endl;
}
