#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  string v = "keyence";
  cin >> s;
  bool f = false;
  int i, j;
  while (i < s.length() && j < v.length()) {
    if (!f && s[i] != v[j]) {
      f = true;
      while (s[i] != v[j]) {
        i++;
        if (i >= s.length()) {
          cout << "NO" << endl;
          return 0;
        }
      }
      continue;
    } else if (f && s[i] != v[j]) {
      cout << "NO" << endl;
      return 0;
    }
    i++;
    j++;
  }
  cout << "YES" << endl;
}
