#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  string a = "keyence";
  int t = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == a[t]) {
      t++;
    }
    if (t == 7) break;
  }
  if (t == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
